##// END OF EJS Templates
tests: improve debugging of failed flash messages.
marcink -
r1312:c1381149 default
parent child Browse files
Show More
@@ -231,9 +231,11 b' def assert_session_flash(response=None, '
231 231 message_text = _eval_if_lazy(message.message)
232 232
233 233 if msg not in message_text:
234 msg = u'msg `%s` not found in session flash: got `%s` instead' % (
235 msg, message_text)
236 pytest.fail(safe_str(msg))
234 fail_msg = u'msg `%s` not found in session ' \
235 u'flash: got `%s` (type:%s) instead' % (
236 msg, message_text, type(message_text))
237
238 pytest.fail(safe_str(fail_msg))
237 239 if category:
238 240 assert category == message.category
239 241
General Comments 0
You need to be logged in to leave comments. Login now