Query values may be processed before being used

This commit is contained in:
Harry Marr
2010-01-06 03:14:21 +00:00
parent 196f4471be
commit 557fb19d13
6 changed files with 72 additions and 11 deletions

View File

@@ -321,6 +321,8 @@ class DocumentTest(unittest.TestCase):
comments = ListField(EmbeddedDocumentField(Comment))
tags = ListField(StringField())
BlogPost.drop_collection()
post = BlogPost(content='Went for a walk today...')
post.tags = tags = ['fun', 'leisure']
comments = [Comment(content='Good for you'), Comment(content='Yay.')]