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)
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)
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)
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)
mock_init):
existing = {'source-name': 'scvolname'}
res = self.scapi.get_unmanaged_volume_size(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)
self.assertRaises(exception.ManageExistingInvalidReference,
self.scapi.get_unmanaged_volume_size,
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)
self.assertRaises(exception.ManageExistingInvalidReference,
self.scapi.get_unmanaged_volume_size,
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)
self.scapi.get_unmanaged_volume_size,
existing)
self.assertTrue(mock_size_to_gb.called)
- 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)
with utils.temporary_chown(test_filename):
mock_exec.assert_called_once_with('chown', 1234, test_filename,
run_as_root=True)
- mock_getuid.asset_called_once_with()
+ mock_getuid.assert_called_once_with()
mock_stat.assert_called_once_with(test_filename)
calls = [mock.call('chown', 1234, test_filename, run_as_root=True),
mock.call('chown', 5678, test_filename, run_as_root=True)]
test_filename = 'a_file'
with utils.temporary_chown(test_filename):
pass
- mock_getuid.asset_called_once_with()
+ mock_getuid.assert_called_once_with()
mock_stat.assert_called_once_with(test_filename)
self.assertFalse(mock_exec.called)