Skip to content

Commit 1abc2fe

Browse files
Add decode to handle byte strings
1 parent d0a8000 commit 1abc2fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_queries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def test_mutation_and_query(self):
9090
""" Run query with JSON and RDF resp_format and verify the result """
9191
response = self.client.txn().query(queryRDF, variables={'$a': 'Alice'})
9292
uid = json.loads(response.json).get('q')[0]['uid']
93-
expected_rdf = "<{}> <name> \"Alice\" .\n".format(uid)
93+
expected_rdf = '<{}> <name> \"Alice\" .\n'.format(uid)
9494
response = self.client.txn().query(queryRDF, variables={'$a': 'Alice'}, resp_format="RDF")
95-
self.assertEqual(expected_rdf,response.rdf)
95+
self.assertEqual(expected_rdf,response.rdf.decode('utf-8'))
9696

9797
def is_number(number):
9898
"""Returns true if object is a number. Compatible with Python 2 and 3."""

0 commit comments

Comments
 (0)