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

Method test_equality

test/test_collection.py:179–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 yield self.db.test
178
179 def test_equality(self):
180 self.assertIsInstance(self.db.test, Collection)
181 self.assertEqual(self.db.test, self.db["test"])
182 self.assertEqual(self.db.test, Collection(self.db, "test"))
183 self.assertEqual(self.db.test.mike, self.db["test.mike"])
184 self.assertEqual(self.db.test["mike"], self.db["test.mike"])
185
186 def test_hashable(self):
187 self.assertIn(self.db.test.mike, {self.db["test.mike"]})

Callers

nothing calls this directly

Calls 1

CollectionClass · 0.90

Tested by

no test coverage detected