diff options
author | Drew Perttula <drewp@bigasterisk.com> | 2015-03-31 22:25:41 -0700 |
---|---|---|
committer | Drew Perttula <drewp@bigasterisk.com> | 2015-03-31 22:25:41 -0700 |
commit | 76075d9939f024402a1447b71781a0d6df5cea87 (patch) | |
tree | cdc9934c078c0d0f71a97886a88b4b42e921385e | |
parent | f167ecf880ea48490c0ecc3e61103e784c42438a (diff) | |
download | rdflib-76075d9939f024402a1447b71781a0d6df5cea87.tar.gz |
don't use assertIn; not supported in py2.6
-rw-r--r-- | test/test_trig.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_trig.py b/test/test_trig.py index c985e002..e05f483e 100644 --- a/test/test_trig.py +++ b/test/test_trig.py @@ -58,14 +58,14 @@ class TestTrig(unittest.TestCase): # prefix for the graph but later serialize() calls would work. first_out = g.serialize(format='trig') second_out = g.serialize(format='trig') - self.assertIn(b'@prefix ns1: <http://example.com/> .', second_out) - self.assertIn(b'@prefix ns1: <http://example.com/> .', first_out) + self.assert_(b'@prefix ns1: <http://example.com/> .' in second_out) + self.assert_(b'@prefix ns1: <http://example.com/> .' in first_out) def testGraphQnameSyntax(self): g = rdflib.ConjunctiveGraph() g.add(TRIPLE + (rdflib.URIRef("http://example.com/graph1"),)) out = g.serialize(format='trig') - self.assertIn(b'ns1:graph1 {', out) + self.assert_(b'ns1:graph1 {' in out) def testGraphUriSyntax(self): g = rdflib.ConjunctiveGraph() @@ -73,7 +73,7 @@ class TestTrig(unittest.TestCase): # a '<...>' term. g.add(TRIPLE + (rdflib.URIRef("http://example.com/foo."),)) out = g.serialize(format='trig') - self.assertIn(b'<http://example.com/foo.> {', out) + self.assert_(b'<http://example.com/foo.> {' in out) def testBlankGraphIdentifier(self): g = rdflib.ConjunctiveGraph() |