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

Method test_cursor_close

test/test_session.py:721–725  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

719 self.assertIn(lsid, session_ids(self.client))
720
721 def test_cursor_close(self):
722 def find(coll, session):
723 return coll.find(session=session)
724
725 self._test_cursor_helper(find, lambda cursor: cursor.close())
726
727 def test_command_cursor_close(self):
728 def aggregate(coll, session):

Callers

nothing calls this directly

Calls 2

_test_cursor_helperMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected