/[fenfire]/fenfire/org/fenfire/util/RDFUtil.test
ViewVC logotype

Diff of /fenfire/org/fenfire/util/RDFUtil.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Tue May 13 03:14:23 2003 UTC revision 1.5 by mudyc, Fri May 23 14:26:07 2003 UTC
# Line 1  Line 1 
1    # -*-python-*-
2  #(c): Matti J. Katila  #(c): Matti J. Katila
3    
4  from org import fenfire  from org import fenfire
# Line 29  def setUp(): Line 30  def setUp():
30  def testNewObjWithType():  def testNewObjWithType():
31      type = Nodes.get('This is a test type')      type = Nodes.get('This is a test type')
32    
33      obj = RDFUtil.N(fen,type)      obj = RDFUtil.N(fen.graph, type)
34    
35      assert type == fen.constgraph.find1_11X(obj, RDF.type)      assert type == fen.constgraph.find1_11X(obj, RDF.type)
36      assert obj == fen.constgraph.find1_X11(RDF.type, type)      assert obj == fen.constgraph.find1_X11(RDF.type, type)
# Line 39  def testNewObjWithType(): Line 40  def testNewObjWithType():
40      assert type == it.next()      assert type == it.next()
41      assert 0 == it.hasNext()      assert 0 == it.hasNext()
42    
43      assert 1 == RDFUtil.isNodeType(fen, obj, type)      assert 1 == RDFUtil.isNodeType(fen.graph, obj, type)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26