(self)
| 1374 | assertCursorKilled() |
| 1375 | |
| 1376 | def test_delete_not_initialized(self): |
| 1377 | # Creating a cursor with invalid arguments will not run __init__ |
| 1378 | # but will still call __del__, eg test.find(invalidKwarg=1). |
| 1379 | cursor = Cursor.__new__(Cursor) # Skip calling __init__ |
| 1380 | cursor.__del__() # no error |
| 1381 | |
| 1382 | def test_getMore_does_not_send_readPreference(self): |
| 1383 | listener = AllowListEventListener("find", "getMore") |