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

Method test_repr_srv_host

test/asynchronous/test_client.py:1021–1028  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1019 self.assertEqual(client_two, client)
1020
1021 async def test_repr_srv_host(self):
1022 client = AsyncMongoClient("mongodb+srv://test1.test.build.10gen.cc/", connect=False)
1023 # before srv resolution
1024 self.assertIn("host='mongodb+srv://test1.test.build.10gen.cc'", repr(client))
1025 await client.aconnect()
1026 # after srv resolution
1027 self.assertIn("host=['localhost.test.build.10gen.cc:", repr(client))
1028 await client.close()
1029
1030 async def test_getters(self):
1031 await async_wait_until(

Callers

nothing calls this directly

Calls 3

aconnectMethod · 0.95
closeMethod · 0.95
AsyncMongoClientClass · 0.90

Tested by

no test coverage detected