removed a checking of dict order because this order is not cared (some implementation might be in ordered, but other one is not)
This commit is contained in:
parent
5957dc72eb
commit
6aaf9ba470
@ -4519,7 +4519,6 @@ class EmbeddedDocumentListFieldTestCase(MongoDBTestCase):
|
|||||||
self.assertEqual(type(doc.ordered_data), OrderedDict)
|
self.assertEqual(type(doc.ordered_data), OrderedDict)
|
||||||
self.assertEqual(type(doc.unordered_data), dict)
|
self.assertEqual(type(doc.unordered_data), dict)
|
||||||
self.assertEqual([k for k,_ in doc.ordered_data.items()], ['d', 'c', 'b', 'a'])
|
self.assertEqual([k for k,_ in doc.ordered_data.items()], ['d', 'c', 'b', 'a'])
|
||||||
self.assertNotEqual([k for k,_ in doc.unordered_data.items()], ['d', 'c', 'b', 'a'])
|
|
||||||
|
|
||||||
def test_dynamicfield_with_wrong_container_class(self):
|
def test_dynamicfield_with_wrong_container_class(self):
|
||||||
with self.assertRaises(ValidationError):
|
with self.assertRaises(ValidationError):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user