forked from DGNum/gestioCOF
Tests the redirection using the appropriate method
This commit is contained in:
parent
dc07b072ab
commit
85ba44c231
1 changed files with 2 additions and 2 deletions
|
@ -66,5 +66,5 @@ class TestStats(TestCase):
|
||||||
for url in articles_urls:
|
for url in articles_urls:
|
||||||
resp = client.get(url)
|
resp = client.get(url)
|
||||||
self.assertEqual(200, resp.status_code)
|
self.assertEqual(200, resp.status_code)
|
||||||
resp2 = client2.get(url)
|
resp2 = client2.get(url, follow=True)
|
||||||
self.assertEqual(302, resp2.status_code)
|
self.assertRedirects(resp2, "/")
|
||||||
|
|
Loading…
Reference in a new issue