We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a8000 commit 1abc2feCopy full SHA for 1abc2fe
tests/test_queries.py
@@ -90,9 +90,9 @@ def test_mutation_and_query(self):
90
""" Run query with JSON and RDF resp_format and verify the result """
91
response = self.client.txn().query(queryRDF, variables={'$a': 'Alice'})
92
uid = json.loads(response.json).get('q')[0]['uid']
93
- expected_rdf = "<{}> <name> \"Alice\" .\n".format(uid)
+ expected_rdf = '<{}> <name> \"Alice\" .\n'.format(uid)
94
response = self.client.txn().query(queryRDF, variables={'$a': 'Alice'}, resp_format="RDF")
95
- self.assertEqual(expected_rdf,response.rdf)
+ self.assertEqual(expected_rdf,response.rdf.decode('utf-8'))
96
97
def is_number(number):
98
"""Returns true if object is a number. Compatible with Python 2 and 3."""
0 commit comments