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

Method test_get_coll

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

DatabaseClass · 0.90
CollectionClass · 0.90

Tested by

no test coverage detected