newname = 'guid'
existing = {'source-name': 'scvolname'}
self.scapi.manage_existing(newname, existing)
- mock_get_volume_list.asert_called_once_with(existing, False)
+ mock_get_volume_list.assert_called_once_with(
+ existing.get('source-name'), None, False)
self.assertTrue(mock_find_mappings.called)
self.assertTrue(mock_size_to_gb.called)
self.scapi.manage_existing,
newname,
existing)
- mock_get_volume_list.asert_called_once_with(
+ mock_get_volume_list.assert_called_once_with(
existing.get('source-name'),
existing.get('source-id'),
False)