(self)
| 1007 | |
| 1008 | @async_client_context.require_sync |
| 1009 | def test_clone_empty(self): |
| 1010 | self.db.test.delete_many({}) |
| 1011 | self.db.test.insert_many([{"x": i} for i in range(1, 4)]) |
| 1012 | cursor = self.db.test.find()[2:2] |
| 1013 | cursor2 = cursor.clone() |
| 1014 | self.assertRaises(StopIteration, cursor.next) |
| 1015 | self.assertRaises(StopIteration, cursor2.next) |
| 1016 | |
| 1017 | # AsyncCursors don't support slicing |
| 1018 | @async_client_context.require_sync |
nothing calls this directly
no test coverage detected