Commit ad84b54e authored by Xavier Calabia's avatar Xavier Calabia

heroes test now actually tests for redirects

parent d8fb8c70
...@@ -4,5 +4,5 @@ from django.test import TestCase ...@@ -4,5 +4,5 @@ from django.test import TestCase
class HomePageTest(TestCase): class HomePageTest(TestCase):
def test_redirects_to_heros_template(self): def test_redirects_to_heros_template(self):
response = self.client.get('/') response = self.client.get('')
self.assertTemplateUsed(response, 'heroes.html') self.assertRedirects(response, '/heroes')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment