Fix assertion methods in a unit test

Replace 'asset_not_called' with 'assert_not_called'.

Change-Id: I52edf34ac451a2c238c88e230e54163bac0bf913
Closes-Bug: #1833485
(cherry picked from commit f8556ae982)
This commit is contained in:
Takashi NATSUME 2019-06-20 11:29:10 +09:00
parent 1f81117a20
commit 2da46b234b
1 changed files with 2 additions and 2 deletions

View File

@ -1291,7 +1291,7 @@ class PowerMaxCommonTest(test.TestCase):
self.common._clone_check(array, device_id, extra_specs)
mock_break.assert_called_with(
array, target, device_id, temp_snap_name, extra_specs, 0)
mock_delete.asset_not_called()
mock_delete.assert_not_called()
sessions1 = [{'source_vol': device_id,
'snap_name': temp_snap_name, 'generation': 0,
@ -1304,7 +1304,7 @@ class PowerMaxCommonTest(test.TestCase):
return_value=sessions1):
self.common._clone_check(array, device_id, extra_specs)
mock_break.assert_not_called()
mock_delete.asset_not_called()
mock_delete.assert_not_called()
@mock.patch.object(provision.PowerMaxProvision,
'break_replication_relationship')