From b93f3ddcf5df16273ce57f0ce77e365ddc676b70 Mon Sep 17 00:00:00 2001 From: Drew Perttula Date: Tue, 31 Mar 2015 22:00:59 -0700 Subject: fix string types for py3 --- test/test_trig.py | 8 ++++---- 1 file 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: .', second_out) - self.assertIn('@prefix ns1: .', first_out) + self.assertIn(b'@prefix ns1: .', second_out) + self.assertIn(b'@prefix ns1: .', 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(' {', out) + self.assertIn(b' {', out) -- cgit v1.2.1