MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_clone

Method test_clone

test/test_cursor.py:1594–1599  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1592 next(cursor)
1593
1594 def test_clone(self):
1595 self.db.test.insert_one({})
1596 cursor = self.db.test.find_raw_batches()
1597 # Copy of a RawBatchCursor is also a RawBatchCursor, not a Cursor.
1598 self.assertIsInstance(next(cursor.clone()), bytes)
1599 self.assertIsInstance(next(copy.copy(cursor)), bytes)
1600
1601 @client_context.require_no_mongos
1602 def test_exhaust(self):

Callers

nothing calls this directly

Calls 5

nextFunction · 0.90
copyMethod · 0.80
insert_oneMethod · 0.45
find_raw_batchesMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected