Added none() to queryset (MongoEngine/mongoengine#127)
This commit is contained in:
parent
99fe1da345
commit
9ca96e4e17
3 changed files with 13 additions and 0 deletions
|
|
@ -252,6 +252,14 @@ class QuerySetTest(unittest.TestCase):
|
|||
|
||||
Blog.drop_collection()
|
||||
|
||||
def test_none(self):
|
||||
class A(Document):
|
||||
pass
|
||||
|
||||
A.drop_collection()
|
||||
A().save()
|
||||
self.assertEqual(A.objects.none(), [])
|
||||
|
||||
def test_chaining(self):
|
||||
class A(Document):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue