From da24b9fb49095951b34fd93453838c95899eed13 Mon Sep 17 00:00:00 2001 From: Tan Lin Date: Mon, 1 Dec 2014 20:58:43 +0800 Subject: [PATCH] Fixed typo in Drac management driver test Correct test_get_boot_devices to test_get_boot_device to be consistent with the function get_boot_device Change-Id: I35b2c8d57ece12dab50ae86cc45cce5e1f70e2de --- ironic/tests/drivers/drac/test_management.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ironic/tests/drivers/drac/test_management.py b/ironic/tests/drivers/drac/test_management.py index 0ea307a959..a6f6325e86 100644 --- a/ironic/tests/drivers/drac/test_management.py +++ b/ironic/tests/drivers/drac/test_management.py @@ -172,7 +172,7 @@ class DracManagementTestCase(db_base.DbTestCase): sorted(self.driver.get_supported_boot_devices())) @mock.patch.object(drac_mgmt, '_get_next_boot_mode') - def test_get_boot_devices(self, mock_gnbm, mock_client_pywsman): + def test_get_boot_device(self, mock_gnbm, mock_client_pywsman): mock_gnbm.return_value = {'instance_id': 'OneTime', 'is_next': drac_mgmt.ONE_TIME_BOOT} @@ -191,7 +191,7 @@ class DracManagementTestCase(db_base.DbTestCase): resource_uris.DCIM_BootSourceSetting) @mock.patch.object(drac_mgmt, '_get_next_boot_mode') - def test_get_boot_devices_persistent(self, mock_gnbm, mock_client_pywsman): + def test_get_boot_device_persistent(self, mock_gnbm, mock_client_pywsman): mock_gnbm.return_value = {'instance_id': 'IPL', 'is_next': drac_mgmt.PERSISTENT} @@ -211,8 +211,8 @@ class DracManagementTestCase(db_base.DbTestCase): @mock.patch.object(drac_client.Client, 'wsman_enumerate') @mock.patch.object(drac_mgmt, '_get_next_boot_mode') - def test_get_boot_devices_client_error(self, mock_gnbm, mock_we, - mock_client_pywsman): + def test_get_boot_device_client_error(self, mock_gnbm, mock_we, + mock_client_pywsman): mock_gnbm.return_value = {'instance_id': 'OneTime', 'is_next': drac_mgmt.ONE_TIME_BOOT} mock_we.side_effect = exception.DracClientError('E_FAKE')