(self)
| 358 | self._test_ops(client, *ops) |
| 359 | |
| 360 | def test_database(self): |
| 361 | client = self.client |
| 362 | db = client.pymongo_test |
| 363 | ops: list = [ |
| 364 | (db.command, ["ping"], {}), |
| 365 | (db.create_collection, ["collection"], {}), |
| 366 | (db.list_collection_names, [], {}), |
| 367 | (db.validate_collection, ["collection"], {}), |
| 368 | (db.drop_collection, ["collection"], {}), |
| 369 | (db.dereference, [DBRef("collection", 1)], {}), |
| 370 | ] |
| 371 | self._test_ops(client, *ops) |
| 372 | |
| 373 | @staticmethod |
| 374 | def collection_write_ops(coll): |