Show More
@@ -231,9 +231,11 b' def assert_session_flash(response=None, ' | |||||
231 | message_text = _eval_if_lazy(message.message) |
|
231 | message_text = _eval_if_lazy(message.message) | |
232 |
|
232 | |||
233 | if msg not in message_text: |
|
233 | if msg not in message_text: | |
234 |
msg = u'msg `%s` not found in session |
|
234 | fail_msg = u'msg `%s` not found in session ' \ | |
235 | msg, message_text) |
|
235 | u'flash: got `%s` (type:%s) instead' % ( | |
236 | pytest.fail(safe_str(msg)) |
|
236 | msg, message_text, type(message_text)) | |
|
237 | ||||
|
238 | pytest.fail(safe_str(fail_msg)) | |||
237 | if category: |
|
239 | if category: | |
238 | assert category == message.category |
|
240 | assert category == message.category | |
239 |
|
241 |
General Comments 0
You need to be logged in to leave comments.
Login now