# HG changeset patch # User Mads Kiilerich # Date 1438350247 -7200 # Node ID f5a83106cd308f0766e8a35167a5ad237916ff61 # Parent 3b01d62654b396796ff24e6a3a970a167c3a6c26 tests: when checkSessionFlash fails, help debugging the problem by showing the full response diff -r 3b01d62654b3 -r f5a83106cd30 kallithea/tests/__init__.py --- 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: