Exemplo n.º 1
0
 def testNoticesDels(self):
     g1 = graphFromQuads([stmt1])
     g2 = ConjunctiveGraph()
     p = Patch.fromDiff(g1, g2)
     self.assertEqual(p.addQuads, [])
     self.assertEqual(p.delQuads, [stmt1])
Exemplo n.º 2
0
 def delGraph(self):
     if self._delGraph is None:
         self._delGraph = graphFromQuads(self.delQuads)
     return self._delGraph
Exemplo n.º 3
0
 def testNonEmpty(self):
     g1 = ConjunctiveGraph()
     g2 = graphFromQuads([stmt1])
     p = Patch.fromDiff(g1, g2)
     self.assert_(p)
Exemplo n.º 4
0
 def addGraph(self):
     if self._addGraph is None:
         self._addGraph = graphFromQuads(self.addQuads)
     return self._addGraph