@mock.patch.object(rest_client.KioxiaProvisioner, 'create_snapshot')
def test_create_snapshot_success(self, mock_create_snapshot):
    testsnap = _stub_snapshot()
    mock_create_snapshot.return_value = success_prov_response
    result = self.driver.create_snapshot(testsnap)
    (args, kwargs) = mock_create_snapshot.call_args
    mock_call = args[0]
    self.assertEqual(mock_call.alias, testsnap['name'])
    self.assertEqual(mock_call.volumeID, testsnap['volume_id'])
    self.assertEqual(mock_call.snapshotID, testsnap['id'])
    self.assertIsNone(result)
@mock.patch.object(rest_client.KioxiaProvisioner, 'create_snapshot')
def test_create_snapshot_success(self, mock_create_snapshot):
    testsnap = _stub_snapshot()
    mock_create_snapshot.return_value = success_prov_response
    result = self.driver.create_snapshot(testsnap)
    (args, kwargs) = mock_create_snapshot.call_args
    mock_call = args[0]
    self.assertEqual(mock_call.alias, testsnap['name'])
    self.assertEqual(mock_call.volumeID, testsnap['volume_id'])
    self.assertEqual(mock_call.snapshotID, testsnap['id'])
    self.assertIsNone(result)