diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-10-08 01:27:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-08 01:27:51 +0000 |
commit | 3cc70ec24eeeded1f4e9e133aa11809e77e69eda (patch) | |
tree | 3a5b802868e66d0fea79ccfd386fb8aab17b48b1 /tests/spawn_vm_test.py | |
parent | fbd80aeee2f3605ebbfe18b4401e255476ab688a (diff) | |
parent | d15bda6895ea0ba09b3d786280db76a86029b674 (diff) |
Merge "Fix unit test problem:'spawn_vm.py does not have attribute FetchImg'"
Diffstat (limited to 'tests/spawn_vm_test.py')
-rw-r--r-- | tests/spawn_vm_test.py | 3 |
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()) |