CLOUDSTACK-8453: Fix DB result check in test_VirtualRouter_alerts.py

Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes #239
This commit is contained in:
Gaurav Aradhye 2015-05-08 19:39:37 +05:30
parent 8c929d58c7
commit fcd74d5fef
1 changed files with 3 additions and 3 deletions

View File

@ -203,9 +203,9 @@ class TestVRServiceFailureAlerting(cloudstackTestCase):
# 30minutes)
qresultset = self.dbclient.execute(
"select id from alert where subject \
= '%s' ORDER BY id DESC LIMIT 1;" %
str(alertSubject))
"select id from alert where subject like\
'%{0}%' ORDER BY id DESC LIMIT 1;".format(
str(alertSubject)))
self.assertNotEqual(
len(qresultset),
0,