(self)
| 994 | self.assertEqual(client_two, client) |
| 995 | |
| 996 | def test_repr_srv_host(self): |
| 997 | client = MongoClient("mongodb+srv://test1.test.build.10gen.cc/", connect=False) |
| 998 | # before srv resolution |
| 999 | self.assertIn("host='mongodb+srv://test1.test.build.10gen.cc'", repr(client)) |
| 1000 | client._connect() |
| 1001 | # after srv resolution |
| 1002 | self.assertIn("host=['localhost.test.build.10gen.cc:", repr(client)) |
| 1003 | client.close() |
| 1004 | |
| 1005 | def test_getters(self): |
| 1006 | wait_until(lambda: client_context.nodes == self.client.nodes, "find all nodes") |
nothing calls this directly
no test coverage detected