aboutsummaryrefslogtreecommitdiffstats
path: root/tests/spawn_vm_test.py
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-11-16 22:56:07 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-11-16 22:56:07 +0800
commit862f1fe7fab4b94242663ab509c3dd91dc592c2c (patch)
tree70c9b0e4ca105d349714435681a978ce408160c4 /tests/spawn_vm_test.py
parent2b3df7dce52e965ba5992334ce7d3d1c229a9ce9 (diff)
Bugfix: Correct the path in unit test.
Change-Id: I2e019230bc50222222c5df4c0d18640616fff074 Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'tests/spawn_vm_test.py')
-rw-r--r--tests/spawn_vm_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/spawn_vm_test.py b/tests/spawn_vm_test.py
index c0d87cac..ba237378 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 utils.spawn_vm import SpawnVM
+from qtip.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('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)
+ @mock.patch('qtip.utils.spawn_vm.Env_setup')
+ @mock.patch('qtip.utils.spawn_vm.AvailabilityZone')
+ @mock.patch('qtip.utils.spawn_vm.keystoneclient.v2_0', autospec=True)
+ @mock.patch('qtip.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()