Mercurial > kallithea
changeset 5333:f5a83106cd30
tests: when checkSessionFlash fails, help debugging the problem by showing the full response
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 31 Jul 2015 15:44:07 +0200 |
parents | 3b01d62654b3 |
children | d8918bb94b80 |
files | kallithea/tests/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/__init__.py Fri Jul 31 15:44:07 2015 +0200 +++ b/kallithea/tests/__init__.py Fri Jul 31 15:44:07 2015 +0200 @@ -234,7 +234,7 @@ def checkSessionFlash(self, response, msg, skip=0): if 'flash' not in response.session: - self.fail(safe_str(u'msg `%s` not found - session has no flash ' % msg)) + self.fail(safe_str(u'msg `%s` not found - session has no flash:\n%s' % (msg, response))) try: level, m = response.session['flash'][-1 - skip] if msg in m: