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

Method test_command

test/test_database.py:398–405  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

commandMethod · 0.45
assertEqualReplyMethod · 0.45

Tested by

no test coverage detected