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

Method test_host_w_port

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

Source from the content-addressed store, hash-verified

965 self.assertNotIn(c, {async_client_context.client})
966
967 async def test_host_w_port(self):
968 with self.assertRaises(ValueError):
969 host = await async_client_context.host
970 await connected(
971 AsyncMongoClient(
972 f"{host}:1234567",
973 connectTimeoutMS=1,
974 serverSelectionTimeoutMS=10,
975 )
976 )
977
978 async def test_repr(self):
979 # Used to test 'eval' below.

Callers

nothing calls this directly

Calls 2

connectedFunction · 0.90
AsyncMongoClientClass · 0.90

Tested by

no test coverage detected