diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-17 00:50:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-17 00:50:01 +0000 |
commit | 2bacbf4b78e200f1e427210a05ee758930ab6c79 (patch) | |
tree | 9c7eaea4168dd7f2fbda331ffd542938c08f86a5 /tests/spawn_vm_test.py | |
parent | ad9ee34c16c43cc60326e0ded52c9806794a14c3 (diff) | |
parent | 862f1fe7fab4b94242663ab509c3dd91dc592c2c (diff) |
Merge "Bugfix: Correct the path in unit test."
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 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() |