From d15bda6895ea0ba09b3d786280db76a86029b674 Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Fri, 7 Oct 2016 16:21:28 +0800 Subject: Fix unit test problem:'spawn_vm.py does not have attribute FetchImg' Change-Id: I8035abfeb52515f106de4188621c207acfe54a65 Signed-off-by: zhifeng.jiang --- tests/spawn_vm_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/spawn_vm_test.py b/tests/spawn_vm_test.py index b22745d7..0ec5c902 100644 --- a/tests/spawn_vm_test.py +++ b/tests/spawn_vm_test.py @@ -43,13 +43,12 @@ class TestClass: [('172.10.0.154', '')]), ]) @mock.patch('func.spawn_vm.Env_setup') - @mock.patch('func.spawn_vm.FetchImg') @mock.patch('func.spawn_vm.create_zones') @mock.patch('func.spawn_vm.client', autospec=True) @mock.patch('func.spawn_vm.keystoneclient.v2_0', autospec=True) @mock.patch('func.spawn_vm.heatclient.client', autospec=True) def test_create_zones_success(self, mock_heat, mock_keystone, - mock_nova_client, mock_zone, mock_fetch, + mock_nova_client, mock_zone, mock_setup, test_input, expected): mock_nova_client.Client.return_value = Mock() mock_heat.Client.return_value = Mock(stacks=HeatMock()) -- cgit 1.2.3-korg