Fixed hashing of EmbeddedDocuments (#348)

This commit is contained in:
Ross Lawley
2013-06-05 11:31:13 +00:00
parent ce44843e27
commit a246154961
3 changed files with 10 additions and 1 deletions

View File

@@ -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'])