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

Method test_host_w_port

test/test_client.py:942–951  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

940 self.assertNotIn(c, {client_context.client})
941
942 def test_host_w_port(self):
943 with self.assertRaises(ValueError):
944 host = client_context.host
945 connected(
946 MongoClient(
947 f"{host}:1234567",
948 connectTimeoutMS=1,
949 serverSelectionTimeoutMS=10,
950 )
951 )
952
953 def test_repr(self):
954 # Used to test 'eval' below.

Callers

nothing calls this directly

Calls 2

connectedFunction · 0.90
MongoClientClass · 0.90

Tested by

no test coverage detected