Show More
@@ -224,9 +224,11 b' def assert_session_flash(response=None, ' | |||||
224 | raise ValueError("Parameter msg is required.") |
|
224 | raise ValueError("Parameter msg is required.") | |
225 |
|
225 | |||
226 | messages = flash.pop_messages() |
|
226 | messages = flash.pop_messages() | |
|
227 | msg = _eval_if_lazy(msg) | |||
|
228 | ||||
|
229 | assert messages, 'unable to find message `%s` in empty flash list' % msg | |||
227 | message = messages[0] |
|
230 | message = messages[0] | |
228 |
|
231 | |||
229 | msg = _eval_if_lazy(msg) |
|
|||
230 | message_text = _eval_if_lazy(message.message) |
|
232 | message_text = _eval_if_lazy(message.message) | |
231 |
|
233 | |||
232 | if msg not in message_text: |
|
234 | if msg not in message_text: |
General Comments 0
You need to be logged in to leave comments.
Login now