From b73e486d02a7ec84fc221e57cc95b35435e0af2c Mon Sep 17 00:00:00 2001 From: pritisarap12 Date: Thu, 11 Jun 2015 13:50:26 +0530 Subject: [PATCH] CLOUDSTACK-8549-Update test_concurrent_snapshots_limits.py asesrt statement Signed-off-by: Rohit Yadav This closes #386 --- .../test_concurrent_snapshots_limit.py | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/integration/component/test_concurrent_snapshots_limit.py b/test/integration/component/test_concurrent_snapshots_limit.py index 910cb004296..d4170faa30f 100644 --- a/test/integration/component/test_concurrent_snapshots_limit.py +++ b/test/integration/component/test_concurrent_snapshots_limit.py @@ -167,15 +167,15 @@ class TestConcurrentSnapshotLimit(cloudstackTestCase): self.apiclient, name="concurrent.snapshots.threshold.perhost" ) - self.assertEqual( - isinstance( - config, - list), - True, - "concurrent.snapshots.threshold.perhost should be present\ - in global config") if config[0].value: - concurrentSnapshots = int(config[0].value) + self.assertEqual( + isinstance( + config, + list), + True, + "concurrent.snapshots.threshold.perhost should be present\ + in global config") + concurrentSnapshots = int(config[0].value) self.debug("concurrent Snapshots: %s" % concurrentSnapshots) threads = [] @@ -227,15 +227,15 @@ class TestConcurrentSnapshotLimit(cloudstackTestCase): self.apiclient, name="concurrent.snapshots.threshold.perhost" ) - self.assertEqual( - isinstance( - config, - list), - True, - "concurrent.snapshots.threshold.perhost should be present\ - in global config") if config[0].value: - concurrentSnapshots = int(config[0].value) + self.assertEqual( + isinstance( + config, + list), + True, + "concurrent.snapshots.threshold.perhost should be present\ + in global config") + concurrentSnapshots = int(config[0].value) else: self.skipTest("Skipping tests as the config value \ concurrent.snapshots.threshold.perhost is Null")