(self)
| 396 | db.validate_collection(coll, full=True, background=True) |
| 397 | |
| 398 | def test_command(self): |
| 399 | self.maxDiff = None |
| 400 | db = self.client.admin |
| 401 | first = db.command("buildinfo") |
| 402 | second = db.command({"buildinfo": 1}) |
| 403 | third = db.command("buildinfo", 1) |
| 404 | self.assertEqualReply(first, second) |
| 405 | self.assertEqualReply(second, third) |
| 406 | |
| 407 | # We use 'aggregate' as our example command, since it's an easy way to |
| 408 | # retrieve a BSON regex from a collection using a command. |
nothing calls this directly
no test coverage detected