aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-10-07 16:21:28 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-10-07 16:22:37 +0800
commitd15bda6895ea0ba09b3d786280db76a86029b674 (patch)
tree2c70872446829a63a285ca83aa77e2f8556c34d9 /tests
parent33d953b9c4a7ecada927af3b1666d15e3f389beb (diff)
Fix unit test problem:'spawn_vm.py does not have attribute FetchImg'
Change-Id: I8035abfeb52515f106de4188621c207acfe54a65 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'tests')
-rw-r--r--tests/spawn_vm_test.py3
1 files changed, 1 insertions, 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())