summaryrefslogtreecommitdiffstats
path: root/tests/spawn_vm_test.py
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-10-08 16:16:33 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-10-09 09:29:03 +0800
commit9c5468b5c14730b2e72fac736115eb2184a402c6 (patch)
tree1565c16d10c8698b8b1b06e483289437bd3eec73 /tests/spawn_vm_test.py
parent62023f676d9801d53dfc1525bebb45f4e88f6fc4 (diff)
code refactor: create_zones.py
1. simply the process of creating aggregates in create_zones.py. 2. before creating aggregates, it will clean all aggregates firstly. TODO: It should clean up the created aggregates. It needs a big structure modification in args_handler.py. Let's do it step by step. Change-Id: I31e09e917ba83d4676f7f95d9f5186bce8d2a449 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spawn_vm_test.py b/tests/spawn_vm_test.py
index 0ec5c902..7890abd1 100644
--- a/tests/spawn_vm_test.py
+++ b/tests/spawn_vm_test.py
@@ -43,7 +43,7 @@ class TestClass:
[('172.10.0.154', '')]),
])
@mock.patch('func.spawn_vm.Env_setup')
- @mock.patch('func.spawn_vm.create_zones')
+ @mock.patch('func.spawn_vm.AvailabilityZone')
@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)