to_json test updates #420
This commit is contained in:
parent
b66cdc8fa0
commit
7a97d42338
2 changed files with 5 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue