(self)
| 379 | self._test_auto_encrypt(opts) |
| 380 | |
| 381 | def test_use_after_close(self): |
| 382 | opts = AutoEncryptionOpts(KMS_PROVIDERS, "keyvault.datakeys") |
| 383 | client = self.rs_or_single_client(auto_encryption_opts=opts) |
| 384 | |
| 385 | client.admin.command("ping") |
| 386 | client.close() |
| 387 | with self.assertRaisesRegex(InvalidOperation, "Cannot use MongoClient after close"): |
| 388 | client.admin.command("ping") |
| 389 | |
| 390 | @unittest.skipIf( |
| 391 | not hasattr(os, "register_at_fork"), |
nothing calls this directly
no test coverage detected