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

Method test_hashable

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

Source from the content-addressed store, hash-verified

129 self.assertFalse(Database(self.client, "test") != Database(self.client, "test"))
130
131 def test_hashable(self):
132 self.assertIn(self.client.test, {Database(self.client, "test")})
133
134 def test_get_coll(self):
135 db = Database(self.client, "pymongo_test")

Callers

nothing calls this directly

Calls 1

DatabaseClass · 0.90

Tested by

no test coverage detected