'This test uses MongoClient explicitly to make sure that host and
port are not overloaded.'

def test_constants(self):

    (host, port) = (client_context.host, client_context.port)
    MongoClient.HOST = 'somedomainthatdoesntexist.org'
    MongoClient.PORT = 123456789
    with self.assertRaises(AutoReconnect):
        connected(MongoClient(serverSelectionTimeoutMS=10, **client_context.ssl_client_options))
    connected(MongoClient(host, port, **client_context.ssl_client_options))
    MongoClient.HOST = host
    MongoClient.PORT = port
    connected(MongoClient(**client_context.ssl_client_options))
