Update mock assertion for mock 1.1
Mock 1.1 has a bug that prevents assert_has_calls() from working if the argument is not a list. Rather than wait for a bug fix, update the one test that is failing to pass a list instead of a single value. Change-Id: I559ad3e97a0b2fea69e11e3fc156a6afa2b4e3ae
This commit is contained in:
parent
6d5a098c79
commit
c6cf9690d4
@ -225,7 +225,7 @@ class MakePartitionsTestCase(test_base.BaseTestCase):
|
||||
self.ephemeral_mb, self.configdrive_mb)
|
||||
|
||||
parted_call = mock.call(*cmd, run_as_root=True, check_exit_code=[0])
|
||||
mock_exc.assert_has_calls(parted_call)
|
||||
mock_exc.assert_has_calls([parted_call])
|
||||
|
||||
|
||||
@mock.patch.object(disk_utils, 'get_dev_block_size')
|
||||
|
Loading…
x
Reference in New Issue
Block a user