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

Method test_cursor_del

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

Source from the content-addressed store, hash-verified

731 self._test_cursor_helper(aggregate, lambda cursor: cursor.close())
732
733 def test_cursor_del(self):
734 def find(coll, session):
735 return coll.find(session=session)
736
737 def delete(cursor):
738 return cursor.__del__()
739
740 self._test_cursor_helper(find, delete)
741
742 def test_command_cursor_del(self):
743 def aggregate(coll, session):

Callers

nothing calls this directly

Calls 1

_test_cursor_helperMethod · 0.95

Tested by

no test coverage detected