Ticket #12368: messages_mysql_tests_fix.diff

File messages_mysql_tests_fix.diff, 799 bytes (added by Tobias McNulty, 15 years ago)

fix test

  • django/contrib/messages/tests/base.py

    diff -r eec2c68ffa03 django/contrib/messages/tests/base.py
    a b  
    218218            response = self.client.post(add_url, data, follow=True)
    219219            self.assertRedirects(response, show_url)
    220220            self.assertTrue('messages' in response.context)
    221             self.assertEqual(list(response.context['messages']),
    222                              data['messages'])
     221            context_messages = list(response.context['messages'])
    223222            for msg in data['messages']:
     223                self.assertTrue(msg in context_messages)
    224224                self.assertContains(response, msg)
    225225
    226226    def test_middleware_disabled_anon_user(self):
Back to Top