Commit 08848fc5 authored by Alysha Columbres's avatar Alysha Columbres

edited tests.py in heroes folder

parent a98f5c6c
from django.test import TestCase from django.test import TestCase
# Create your tests here. # Create your tests here.
class TaskListPageTest(TestCase): class TestForHeroes(TestCase):
def test_uses_list_template(self): def test_heroes_if_correct_response_(self):
response = self.client.get('/heroes') response = self.client.get('/heroes')
self.assertTemplateUsed(response, 'heroes.html') self.assertTemplateUsed(response, 'heroes.html')
class TestForHeroCloud(TestCase):
def test_hero_cloud_if_correct_response_(self):
response = self.client.get('/hero/cloud') response = self.client.get('/hero/cloud')
self.assertTemplateUsed(response, 'detail_cloud.html') self.assertTemplateUsed(response, 'detail_cloud.html')
class TestForHeroSunflowey(TestCase):
def test_hero_sunflowey_if_correct_response_(self):
response = self.client.get('/hero/sunflowey') response = self.client.get('/hero/sunflowey')
self.assertTemplateUsed(response, 'detail_sunflowey.html') self.assertTemplateUsed(response, 'detail_sunflowey.html')
class TestForHeroJester(TestCase):
def test_hero_jester_if_correct_response_(self):
response = self.client.get('/hero/jester') response = self.client.get('/hero/jester')
self.assertTemplateUsed(response, 'detail_jester.html') self.assertTemplateUsed(response, 'detail_jester.html')
\ No newline at end of file
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