diff options
author | Ruby Loo <rloo@yahoo-inc.com> | 2014-07-21 15:54:30 +0000 |
---|---|---|
committer | Ruby Loo <rloo@yahoo-inc.com> | 2014-07-21 15:54:30 +0000 |
commit | 034f4c63b4ec3d62e15ed05d5d142cbb988b92d4 (patch) | |
tree | 6b2c6fda8fa9e40c98691d6cae58ef87d4c509a6 | |
parent | 8e54221348c21286e1912b1c61ac7cf4d264ec2b (diff) | |
download | ironic-034f4c63b4ec3d62e15ed05d5d142cbb988b92d4.tar.gz |
Use mock.assert_called_once_with()
One of the ilo unit tests makes a call to Mock.assert_once_called_with().
That doesn't exist. It should be Mock.assert_called_once_with().
Change-Id: I7b57483479ddcd5ae00122064f8d4a133e922ae7
-rw-r--r-- | ironic/tests/drivers/ilo/test_power.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/tests/drivers/ilo/test_power.py b/ironic/tests/drivers/ilo/test_power.py index 2e3e2dabf..61a221f8a 100644 --- a/ironic/tests/drivers/ilo/test_power.py +++ b/ironic/tests/drivers/ilo/test_power.py @@ -154,7 +154,7 @@ class IloPowerTestCase(base.TestCase): with task_manager.acquire(self.context, self.node.uuid, shared=True) as task: task.driver.power.validate(task) - mock_drvinfo.assert_once_called_with(task.node) + mock_drvinfo.assert_called_once_with(task.node) @mock.patch.object(ilo_common, 'parse_driver_info') def test_validate_fail(self, mock_drvinfo): |