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

Method test_get_coll

test/asynchronous/test_database.py:135–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.assertIn(self.client.test, {AsyncDatabase(self.client, "test")})
134
135 def test_get_coll(self):
136 db = AsyncDatabase(self.client, "pymongo_test")
137 self.assertEqual(db.test, db["test"])
138 self.assertEqual(db.test, AsyncCollection(db, "test"))
139 self.assertNotEqual(db.test, AsyncCollection(db, "mike"))
140 self.assertEqual(db.test.mike, db["test.mike"])
141
142 def test_repr(self):
143 name = "AsyncDatabase"

Callers

nothing calls this directly

Calls 2

AsyncDatabaseClass · 0.90
AsyncCollectionClass · 0.90

Tested by

no test coverage detected