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 ef38353 commit d17fe45Copy full SHA for d17fe45
test/test_cgi.py
@@ -1096,6 +1096,11 @@ def wh(s):
1096
# Should work as all required headers are present.
1097
cl.handle_rest()
1098
answer='{"data": {"link": "http://tracker.example/cgi-bin/roundup.cgi/bugs/rest/data/issue/1", "id": "1"}}\n'
1099
+ # check length to see if pretty is turned off.
1100
+ self.assertEqual(len(out[0]), 99)
1101
+
1102
+ # compare as dicts not strings due to different key ordering
1103
+ # between python versions.
1104
response=json.loads(b2s(out[0]))
1105
expected=json.loads(answer)
1106
self.assertEqual(response,expected)
0 commit comments