diff options
author | Drew Perttula <drewp@bigasterisk.com> | 2015-03-31 22:00:59 -0700 |
---|---|---|
committer | Drew Perttula <drewp@bigasterisk.com> | 2015-03-31 22:00:59 -0700 |
commit | b93f3ddcf5df16273ce57f0ce77e365ddc676b70 (patch) | |
tree | 7a4e8e6fbd26d7969ac447ed3b32abe436531cc4 | |
parent | bd57db75f14e20aa7330624b671fb2160587dbd8 (diff) | |
download | rdflib-b93f3ddcf5df16273ce57f0ce77e365ddc676b70.tar.gz |
fix string types for py3
-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 862bff12..742e3281 100644 --- a/test/test_trig.py +++ b/test/test_trig.py @@ -57,8 +57,8 @@ 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('@prefix ns1: <http://example.com/> .', second_out) - self.assertIn('@prefix ns1: <http://example.com/> .', first_out) + self.assertIn(b'@prefix ns1: <http://example.com/> .', second_out) + self.assertIn(b'@prefix ns1: <http://example.com/> .', first_out) print first_out @@ -69,7 +69,7 @@ class TestTrig(unittest.TestCase): rdflib.Literal("example 1"), rdflib.URIRef("http://example.com/graph1"))) out = g.serialize(format='trig') - self.assertIn('ns1:graph1 {', out) + self.assertIn(b'ns1:graph1 {', out) def testGraphUriSyntax(self): g = rdflib.ConjunctiveGraph() @@ -80,4 +80,4 @@ class TestTrig(unittest.TestCase): # out as a '<...>' term. rdflib.URIRef("http://example.com/foo."))) out = g.serialize(format='trig') - self.assertIn('<http://example.com/foo.> {', out) + self.assertIn(b'<http://example.com/foo.> {', out) |