Fixed hashing of EmbeddedDocuments (#348)
This commit is contained in:
parent
ce44843e27
commit
a246154961
3 changed files with 10 additions and 1 deletions
|
|
@ -1705,6 +1705,14 @@ class InstanceTest(unittest.TestCase):
|
|||
|
||||
self.assertTrue(u1 in all_user_set)
|
||||
|
||||
def test_embedded_document_hash(self):
|
||||
"""Test embedded document can be hashed
|
||||
"""
|
||||
class User(EmbeddedDocument):
|
||||
pass
|
||||
|
||||
hash(User())
|
||||
|
||||
def test_picklable(self):
|
||||
|
||||
pickle_doc = PickleTest(number=1, string="One", lists=['1', '2'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue