Skip to content

Commit 4427f14

Browse files
author
Anurag Awasthi
committed
Fix readability of python code
1 parent 4d83be4 commit 4427f14

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/integration/smoke/test_deploy_vm_extra_config_data.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
from marvin.lib.utils import *
4040
from nose.plugins.attrib import attr
4141

42-
4342
class TestAddConfigtoDeployVM(cloudstackTestCase):
4443

4544
@classmethod
@@ -186,7 +185,7 @@ def get_vm_uuid(self, instance_name, ssh_client):
186185
return uuid_str[i + 1:].strip()
187186

188187
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
189-
def test_01_deploy_vm__with_extraconfig_throws_exception_kvm(self):
188+
def test_01_deploy_vm_with_extraconfig_throws_exception_kvm(self):
190189
'''
191190
Test that extra config is not added when element tag is not added on the allowed list global config on KVM hosts
192191
'''
@@ -216,7 +215,7 @@ def test_01_deploy_vm__with_extraconfig_throws_exception_kvm(self):
216215
logging.debug(e)
217216

218217
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
219-
def test_02_deploy_vm__with_extraconfig_kvm(self):
218+
def test_02_deploy_vm_with_extraconfig_kvm(self):
220219
'''
221220
Test that extra config is added on KVM hosts
222221
'''
@@ -287,7 +286,7 @@ def test_02_deploy_vm__with_extraconfig_kvm(self):
287286
self.add_global_config(name, "")
288287

289288
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
290-
def test_03_update_vm__with_extraconfig_kvm(self):
289+
def test_03_update_vm_with_extraconfig_kvm(self):
291290
'''
292291
Test that extra config is added on KVM hosts
293292
'''
@@ -366,7 +365,7 @@ def test_03_update_vm__with_extraconfig_kvm(self):
366365
self.add_global_config(name, "")
367366

368367
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
369-
def test_05_deploy_vm__with_extraconfig_throws_exception_vmware(self):
368+
def test_04_deploy_vm_with_extraconfig_throws_exception_vmware(self):
370369
'''
371370
Test that extra config is not added when configuration key is not added on the allowed list global config for VMWARE hosts
372371
'''
@@ -393,7 +392,7 @@ def test_05_deploy_vm__with_extraconfig_throws_exception_vmware(self):
393392
logging.debug(e)
394393

395394
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
396-
def test_06_deploy_vm__with_extraconfig_vmware(self):
395+
def test_05_deploy_vm_with_extraconfig_vmware(self):
397396
'''
398397
Test that extra config is added on VMware hosts
399398
'''
@@ -447,7 +446,7 @@ def test_06_deploy_vm__with_extraconfig_vmware(self):
447446
self.add_global_config(name, "")
448447

449448
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
450-
def test_07_deploy_vm__with_extraconfig_throws_exception_xenserver(self):
449+
def test_06_deploy_vm_with_extraconfig_throws_exception_xenserver(self):
451450
'''
452451
Test that extra config is not added when configuration key is not added on the allowed list global config for XenServer hosts
453452
'''
@@ -477,7 +476,7 @@ def test_07_deploy_vm__with_extraconfig_throws_exception_xenserver(self):
477476
logging.debug(e)
478477

479478
@attr(tags=["devcloud", "advanced", "advancedns", "smoke", "basic", "sg"], required_hardware="true")
480-
def test_08_deploy_vm__with_extraconfig_xenserver(self):
479+
def test_07_deploy_vm_with_extraconfig_xenserver(self):
481480
hypervisor = self.hypervisor.lower()
482481
if hypervisor != 'xenserver':
483482
raise self.skipTest("Skipping test case for non-xenserver hypervisor")

0 commit comments

Comments
 (0)