def METHOD_NAME(self):
    VSphere_REST_NodeDriver.connectionCls.conn_class = VSphereMockHttp
    self.driver = VSphere_REST_NodeDriver(
        key="user", secret="pass", secure=True, host="foo", port=443
    )