From 8ac1796226c3239bd48d05f7a043b29ad71a272a Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 7 Aug 2013 16:10:53 +0530 Subject: [PATCH] Fix invalid references Signed-off-by: Prasanna Santhanam --- test/integration/component/test_snapshot_gc.py | 4 ++-- test/integration/component/test_snapshot_limits.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/component/test_snapshot_gc.py b/test/integration/component/test_snapshot_gc.py index 04328e89853..7727d1cf41c 100644 --- a/test/integration/component/test_snapshot_gc.py +++ b/test/integration/component/test_snapshot_gc.py @@ -230,12 +230,12 @@ class TestAccountSnapshotClean(cloudstackTestCase): self.assertEqual( isinstance(qresultset, list), True, - "Invalid db query response for snapshot %s" % self.snapshot.id + "Invalid db query response for snapshot %s" % snapshot_id ) self.assertNotEqual( len(qresultset), 0, - "No such snapshot %s found in the cloudstack db" % self.snapshot.id + "No such snapshot %s found in the cloudstack db" % snapshot_id ) snapshotPath = qresultset[0][0] nfsurl = secondaryStore.url diff --git a/test/integration/component/test_snapshot_limits.py b/test/integration/component/test_snapshot_limits.py index a1cd45d0396..429e67e0b87 100644 --- a/test/integration/component/test_snapshot_limits.py +++ b/test/integration/component/test_snapshot_limits.py @@ -218,12 +218,12 @@ class TestSnapshotLimit(cloudstackTestCase): self.assertEqual( isinstance(qresultset, list), True, - "Invalid db query response for snapshot %s" % self.snapshot.id + "Invalid db query response for snapshot %s" % snapshot_id ) self.assertNotEqual( len(qresultset), 0, - "No such snapshot %s found in the cloudstack db" % self.snapshot.id + "No such snapshot %s found in the cloudstack db" % snapshot_id ) snapshotPath = qresultset[0][0] nfsurl = secondaryStore.url @@ -373,12 +373,12 @@ class TestSnapshotLimit(cloudstackTestCase): self.assertEqual( isinstance(qresultset, list), True, - "Invalid db query response for snapshot %s" % self.snapshot.id + "Invalid db query response for snapshot %s" % snapshot.id ) self.assertNotEqual( len(qresultset), 0, - "No such snapshot %s found in the cloudstack db" % self.snapshot.id + "No such snapshot %s found in the cloudstack db" % snapshot.id ) qresult = qresultset[0]