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

Method test_repr

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

Source from the content-addressed store, hash-verified

139 self.assertEqual(db.test.mike, db["test.mike"])
140
141 def test_repr(self):
142 name = "Database"
143 self.assertEqual(
144 repr(Database(self.client, "pymongo_test")),
145 "{}({!r}, {})".format(name, self.client, repr("pymongo_test")),
146 )
147
148 def test_create_collection(self):
149 db = Database(self.client, "pymongo_test")

Callers

nothing calls this directly

Calls 1

DatabaseClass · 0.90

Tested by

no test coverage detected