Fixed error in Binary Field
This commit is contained in:
parent
2801b38c75
commit
f99b7a811b
3 changed files with 7 additions and 1 deletions
|
|
@ -283,6 +283,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())
|
||||
|
|
@ -307,6 +308,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