This commit is contained in:
Ross Lawley
2012-12-10 15:16:31 +00:00
parent 2459f9b0aa
commit 3b3738b36b
7 changed files with 28 additions and 9 deletions

View File

@@ -2201,7 +2201,7 @@ class FieldTest(unittest.TestCase):
comments=[Comment(content="NoSQL Rocks"),
Comment(content="MongoEngine Rocks")]).save()
c = self.db['mongoengine.counters'].find_one({'_id': 'Comment.id'})
c = self.db['mongoengine.counters'].find_one({'_id': 'comment.id'})
self.assertEqual(c['next'], 2)
post = Post.objects.first()
self.assertEqual(1, post.comments[0].id)