def setUp(self): super(NetAppBlockStorageLibraryTestCase, self).setUp() kwargs = {'configuration': mock.Mock()} self.library = block_base.NetAppBlockStorageLibrary( 'driver', 'protocol', **kwargs) self.library.zapi_client = mock.Mock() self.mock_request = mock.Mock()
def setUp(self): super(NetAppBlockStorageLibraryTestCase, self).setUp() # Inject fake netapp_lib module classes. netapp_api.mock_netapp_lib([block_base]) kwargs = {'configuration': mock.Mock()} self.library = block_base.NetAppBlockStorageLibrary( 'driver', 'protocol', **kwargs) self.library.zapi_client = mock.Mock() self.zapi_client = self.library.zapi_client self.mock_request = mock.Mock()