MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_repr

Method test_repr

test/test_server.py:30–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28
29class TestServer(unittest.TestCase):
30 def test_repr(self):
31 hello = Hello({"ok": 1})
32 sd = ServerDescription(("localhost", 27017), hello)
33 server = Server(sd, pool=object(), monitor=object()) # type: ignore[arg-type]
34 self.assertIn("Standalone", str(server))
35
36
37if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

HelloClass · 0.90
ServerDescriptionClass · 0.90
ServerClass · 0.90

Tested by

no test coverage detected