Commit 1a1db49b authored by Margarita Perez's avatar Margarita Perez

Fixed the heroes/tests file

parent 9dc76eb3
#heroes/tests.py
from django.test import TestCase from django.test import TestCase
# Create your tests here. testing change # Create your tests here.
class HomepageTest(TestCase):
def homepage_test(self):
response = self.client.get('/heroes/')
self.assertTemplateUsed(response, 'homepage.html')
class CloudTest(TestCase):
def cloud_test(self):
response = self.client.get('/hero/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html')
class SunfloweyTest(TestCase):
def sunflowey_test(self):
response = self.client.get('/hero/sunflowey/')
self.assertTemplateUsed(response, 'detail_sunflowey.html')
class JesterTest(TestCase):
def jester_test(self):
response = self.client.get('/hero/jester/')
self.assertTemplateUsed(response, 'detail_jester.html')
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