mirror of https://github.com/django/django.git
Fixed #12368: Fixed order-dependent messages test that was failing on MySQL/MyISAM. Thanks Tobias.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4b0f9531eb
commit
cafb12464b
|
@ -218,9 +218,9 @@ class BaseTest(TestCase):
|
||||||
response = self.client.post(add_url, data, follow=True)
|
response = self.client.post(add_url, data, follow=True)
|
||||||
self.assertRedirects(response, show_url)
|
self.assertRedirects(response, show_url)
|
||||||
self.assertTrue('messages' in response.context)
|
self.assertTrue('messages' in response.context)
|
||||||
self.assertEqual(list(response.context['messages']),
|
context_messages = list(response.context['messages'])
|
||||||
data['messages'])
|
|
||||||
for msg in data['messages']:
|
for msg in data['messages']:
|
||||||
|
self.assertTrue(msg in context_messages)
|
||||||
self.assertContains(response, msg)
|
self.assertContains(response, msg)
|
||||||
|
|
||||||
def test_middleware_disabled_anon_user(self):
|
def test_middleware_disabled_anon_user(self):
|
||||||
|
|
Loading…
Reference in New Issue