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

Method test_repr

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

AsyncDatabaseClass · 0.90

Tested by

no test coverage detected