From 3ef593d571e502cef490b671b51440324fe18373 Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Tue, 27 Jan 2015 18:05:36 -0800 Subject: [PATCH] Improve test assertion for get_glance_image_properties This ensures that the call is only made once, as the point of that method is to avoid multiple calls to glance. Change-Id: Ie393fb1f85932e061df357af455c049be7f0e36b --- ironic/tests/drivers/ilo/test_deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic/tests/drivers/ilo/test_deploy.py b/ironic/tests/drivers/ilo/test_deploy.py index 60d56dd056..a519a559e0 100644 --- a/ironic/tests/drivers/ilo/test_deploy.py +++ b/ironic/tests/drivers/ilo/test_deploy.py @@ -132,8 +132,8 @@ class IloDeployPrivateMethodsTestCase(db_base.DbTestCase): shared=False) as task: boot_iso_actual = ilo_deploy._get_boot_iso(task, 'root-uuid') deploy_info_mock.assert_called_once_with(task.node) - image_props_mock.assert_any_call(task.context, 'image-uuid', - ['boot_iso', 'kernel_id', 'ramdisk_id']) + image_props_mock.assert_called_once_with(task.context, + 'image-uuid', ['boot_iso', 'kernel_id', 'ramdisk_id']) boot_object_name_mock.assert_called_once_with(task.node) create_boot_iso_mock.assert_called_once_with(task.context, 'tmpfile', 'kernel_uuid', 'ramdisk_uuid',