diff options
author | 2016-11-09 09:38:08 +0800 | |
---|---|---|
committer | 2016-11-09 09:38:08 +0800 | |
commit | eed3a9fc0bf490bef2e1c7cc597db6063c11bcac (patch) | |
tree | c4582b43b6e3c22b4ca6d9a1ce885a677a6190a9 /tests/spawn_vm_test.py | |
parent | 03b2fdd33a019c4eabc8da7ba49c851bf91ffc4e (diff) |
Merge func to utils
Local test is ok.
JIRA: QTIP-131
Change-Id: I7009337903c7ded90dda47a05d6c1c95aa96815d
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'tests/spawn_vm_test.py')
-rw-r--r-- | tests/spawn_vm_test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/spawn_vm_test.py b/tests/spawn_vm_test.py index fca7dd00..c0d87cac 100644 --- a/tests/spawn_vm_test.py +++ b/tests/spawn_vm_test.py @@ -2,7 +2,7 @@ import pytest import mock from mock import Mock, MagicMock import os -from func.spawn_vm import SpawnVM +from utils.spawn_vm import SpawnVM class KeystoneMock(MagicMock): @@ -40,10 +40,10 @@ class TestClass: 'role': ['1-server', '2-host']}, [('172.10.0.154', '')]), ]) - @mock.patch('func.spawn_vm.Env_setup') - @mock.patch('func.spawn_vm.AvailabilityZone') - @mock.patch('func.spawn_vm.keystoneclient.v2_0', autospec=True) - @mock.patch('func.spawn_vm.heatclient.client', autospec=True) + @mock.patch('utils.spawn_vm.Env_setup') + @mock.patch('utils.spawn_vm.AvailabilityZone') + @mock.patch('utils.spawn_vm.keystoneclient.v2_0', autospec=True) + @mock.patch('utils.spawn_vm.heatclient.client', autospec=True) def test_create_zones_success(self, mock_heat, mock_keystone, mock_zone, mock_setup, test_input, expected): open('./config/QtipKey.pub', 'a').close() |