Merge branch 'master' into 0.7
Conflicts: mongoengine/base.py
This commit is contained in:
commit
52d80ac23c
12 changed files with 163 additions and 53 deletions
|
|
@ -284,6 +284,7 @@ class FieldTest(unittest.TestCase):
|
|||
uu = uuid.uuid4()
|
||||
Person(api_key=uu).save()
|
||||
self.assertEqual(1, Person.objects(api_key=uu).count())
|
||||
self.assertEqual(uu, Person.objects.first().api_key)
|
||||
|
||||
person = Person()
|
||||
valid = (uuid.uuid4(), uuid.uuid1())
|
||||
|
|
@ -308,6 +309,7 @@ class FieldTest(unittest.TestCase):
|
|||
uu = uuid.uuid4()
|
||||
Person(api_key=uu).save()
|
||||
self.assertEqual(1, Person.objects(api_key=uu).count())
|
||||
self.assertEqual(uu, Person.objects.first().api_key)
|
||||
|
||||
person = Person()
|
||||
valid = (uuid.uuid4(), uuid.uuid1())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue