Mercurial > public > src > rhodecode
changeset 2632:f17e001cc6cc beta
better error message in checkSession in tests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 01 Jul 2012 18:06:56 +0200 |
parents | 40b3a54391f9 |
children | d80a68e2ebcc |
files | rhodecode/tests/__init__.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/tests/__init__.py Sun Jul 01 18:06:34 2012 +0200 +++ b/rhodecode/tests/__init__.py Sun Jul 01 18:06:56 2012 +0200 @@ -157,4 +157,8 @@ def checkSessionFlash(self, response, msg): self.assertTrue('flash' in response.session) - self.assertTrue(msg in response.session['flash'][0][1]) + if not msg in response.session['flash'][0][1]: + self.fail( + 'msg `%s` not found in session flash: got `%s` instead' % ( + msg, response.session['flash'][0][1]) + )