Updates to imports for future pymongo 2.2
This commit is contained in:
parent
a15352a4f8
commit
a59b518cf2
9 changed files with 81 additions and 69 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import pickle
|
||||
import pymongo
|
||||
import bson
|
||||
import unittest
|
||||
import warnings
|
||||
|
||||
|
|
@ -2222,7 +2223,7 @@ class DocumentTest(unittest.TestCase):
|
|||
|
||||
# Test laziness
|
||||
self.assertTrue(isinstance(post_obj._data['author'],
|
||||
pymongo.dbref.DBRef))
|
||||
bson.DBRef))
|
||||
self.assertTrue(isinstance(post_obj.author, self.Person))
|
||||
self.assertEqual(post_obj.author.name, 'Test User')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue