mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
This commit is contained in:
@@ -261,7 +261,7 @@ class URLRedirectWithoutTrailingSlashTests(URLTestCaseBase):
|
||||
def test_en_redirect(self):
|
||||
response = self.client.get('/account/register', HTTP_ACCEPT_LANGUAGE='en', follow=True)
|
||||
# We only want one redirect, bypassing CommonMiddleware
|
||||
self.assertListEqual(response.redirect_chain, [('/en/account/register/', 302)])
|
||||
self.assertEqual(response.redirect_chain, [('/en/account/register/', 302)])
|
||||
self.assertRedirects(response, '/en/account/register/', 302)
|
||||
|
||||
response = self.client.get('/prefixed.xml', HTTP_ACCEPT_LANGUAGE='en', follow=True)
|
||||
|
||||
Reference in New Issue
Block a user