(self)
| 28 | |
| 29 | class 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 | |
| 37 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected