diff -r eec2c68ffa03 django/contrib/messages/tests/base.py
a
|
b
|
|
218 | 218 | response = self.client.post(add_url, data, follow=True) |
219 | 219 | self.assertRedirects(response, show_url) |
220 | 220 | self.assertTrue('messages' in response.context) |
221 | | self.assertEqual(list(response.context['messages']), |
222 | | data['messages']) |
| 221 | context_messages = list(response.context['messages']) |
223 | 222 | for msg in data['messages']: |
| 223 | self.assertTrue(msg in context_messages) |
224 | 224 | self.assertContains(response, msg) |
225 | 225 | |
226 | 226 | def test_middleware_disabled_anon_user(self): |