def __init__(self, methodName='runTest'): super(ImageTestCase, self).__init__(methodName) self.apibase = api_sample.APITestBase() # test change bind_port self.set_conf('sdkserver', 'bind_port', 3001) self.client = test_sdkwsgi.TestSDKClient()
def __init__(self, methodName='runTest'): super(ZVMConnectorTestCase, self).__init__(methodName) self.apibase = api_sample.APITestBase() self.restclient = connector.ZVMConnector(connection_type=CONN_REST, port=8888) self.sockclient = connector.ZVMConnector(connection_type=CONN_SOCKET) self.userid_rest = 'RESTT%03d' % (time.time() % 1000) self.userid_sock = 'SOCKT%03d' % (time.time() % 1000)
def __init__(self, methodName='runTest'): super(VersionTestCase, self).__init__(methodName) self.apibase = api_sample.APITestBase()