to_json test updates #420

This commit is contained in:
Ross Lawley
2013-07-29 15:38:08 +00:00
parent b66cdc8fa0
commit 7a97d42338
2 changed files with 5 additions and 1 deletions

View File

@@ -3327,7 +3327,7 @@ class QuerySetTest(unittest.TestCase):
Doc(string="Bye", embedded_field=Embedded(string="Bye")).save()
Doc().save()
json_data = Doc.objects.to_json()
json_data = Doc.objects.to_json(sort_keys=True, separators=(',', ':'))
doc_objects = list(Doc.objects)
self.assertEqual(doc_objects, Doc.objects.from_json(json_data))