##// END OF EJS Templates
better error message in checkSession in tests
marcink -
r2530:f17e001c beta
parent child Browse files
Show More
@@ -157,4 +157,8 b' class TestController(TestCase):'
157
157
158 def checkSessionFlash(self, response, msg):
158 def checkSessionFlash(self, response, msg):
159 self.assertTrue('flash' in response.session)
159 self.assertTrue('flash' in response.session)
160 self.assertTrue(msg in response.session['flash'][0][1])
160 if not msg in response.session['flash'][0][1]:
161 self.fail(
162 'msg `%s` not found in session flash: got `%s` instead' % (
163 msg, response.session['flash'][0][1])
164 )
General Comments 0
You need to be logged in to leave comments. Login now