Commit 26c216b8 authored by Li Niko M. Arceo's avatar Li Niko M. Arceo 🦈

Unittest for cloud details works

parent fbfc431c
......@@ -4,8 +4,14 @@ from django.test import TestCase
from .views import HomeView
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
def test_uses_home_template(self):
response = self.client.get('/')
self.assertTemplateUsed(response,'home.html')
class CloudTemplateTest(TestCase):
def test_uses_cloud_template(self):
response = self.client.get('/heroes/cloud')
self.assertTemplateUsed(response,'detail_cloud.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