Created tests

parent c362a7c8
Pipeline #831 canceled with stages
from django.test import TestCase from django.test import TestCase
class HomePageTest(TestCase):
def test_uses_home_template(self):
response = self.client.get('/')
self.assertTemplateUsed(response, 'home.html')
class CloudTest(TestCase):
def test_uses_cloud_template(self):
response = self.client.get('/cloud/')
self.assertTemplateUsed(response, 'detail_cloud.html')
class JesterTest(TestCase):
def test_uses_jester_template(self):
response = self.client.get('/jester/')
self.assertTemplateUsed(response, 'detail_jester.html')
class SunfloweyTest(TestCase):
def test_uses_sunflowey_template(self):
response = self.client.get('/sunflowey/')
self.assertTemplateUsed(response, 'detail_sunflowey.html')
# Create your tests here. # Create your tests here.
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