There was an error while loading. Please reload this page.
1 parent a6d11fc commit a85198bCopy full SHA for a85198b
test/test_bulk.py
@@ -25,9 +25,10 @@
25
from pymongo.errors import BulkWriteError, InvalidOperation, OperationFailure
26
from test import version
27
from test.test_client import get_client
28
-from test.utils import (server_started_with_option, server_started_with_auth,
29
- remove_all_users)
30
-
+from test.utils import (oid_generated_on_client,
+ remove_all_users,
+ server_started_with_auth,
31
+ server_started_with_option)
32
33
class BulkTestBase(unittest.TestCase):
34
@@ -152,6 +153,8 @@ def test_insert(self):
152
153
result)
154
155
self.assertEqual(1, self.coll.count())
156
+ doc = self.coll.find_one()
157
+ self.assertTrue(oid_generated_on_client(doc))
158
159
bulk = self.coll.initialize_unordered_bulk_op()
160
bulk.insert({})
0 commit comments