Fix merge with AUTHORS

This commit is contained in:
Yohan Graterol
2014-11-07 11:02:48 -05:00
3 changed files with 15 additions and 1 deletions

View File

@@ -112,6 +112,19 @@ class InstanceTest(unittest.TestCase):
self.assertEqual('<Article: привет мир>', repr(doc))
def test_repr_none(self):
"""Ensure None values handled correctly
"""
class Article(Document):
title = StringField()
def __str__(self):
return None
doc = Article(title=u'привет мир')
self.assertEqual('<Article: None>', repr(doc))
def test_queryset_resurrects_dropped_collection(self):
self.Person.drop_collection()