Fix invalid references

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8ac1796226)
This commit is contained in:
Prasanna Santhanam 2013-08-07 16:10:53 +05:30
parent 79cd3df6fb
commit a6065ff378
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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]