Fix #866: does not follow

This commit is contained in:
David Bordeynik
2015-02-16 12:25:37 +02:00
parent 0205d827f1
commit 5c3d91e65e
3 changed files with 10 additions and 0 deletions

View File

@@ -1176,6 +1176,11 @@ class FieldTest(unittest.TestCase):
post.reload()
self.assertEqual('updated', post.info['title'])
post.info.setdefault('authors', [])
post.save()
post.reload()
self.assertEqual([], post.info['authors'])
BlogPost.drop_collection()
def test_dictfield_strict(self):