def setUp(self): api_session = api.VMwareAPISession("test_server", "test_user", "test_password", 0, None, create_session=False) api_session._vim = mock.MagicMock() self._vsphere_ops = vsphere_operations.VsphereOperations( api_session, 1000) super(VsphereOperationsTest, self).setUp()
def __init__(self, conf): super(VsphereInspector, self).__init__(conf) self._ops = vsphere_operations.VsphereOperations( get_api_session(self.conf), 1000)