##// END OF EJS Templates
tests: improve detection of empty flash messages during the tests
marcink -
r1097:07c2ecba default
parent child Browse files
Show More
@@ -224,9 +224,11 b' def assert_session_flash(response=None, '
224 224 raise ValueError("Parameter msg is required.")
225 225
226 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 230 message = messages[0]
228 231
229 msg = _eval_if_lazy(msg)
230 232 message_text = _eval_if_lazy(message.message)
231 233
232 234 if msg not in message_text:
General Comments 0
You need to be logged in to leave comments. Login now