Commit 333df71d authored by Dan Mark Restoles's avatar Dan Mark Restoles

all hero tests passed

parent 667e1f0f
......@@ -14,4 +14,12 @@ class HeroPageTest(TestCase):
def test_url_resolves_to_cloud_page_view(self):
found = resolve('/hero/cloud/')
self.assertEqual(found.func.__name__, CloudView.as_view().__name__)
\ No newline at end of file
self.assertEqual(found.func.__name__, CloudView.as_view().__name__)
def test_url_resolves_to_jester_page_view(self):
found = resolve('/hero/jester/')
self.assertEqual(found.func.__name__, JesterView.as_view().__name__)
def test_url_resolves_to_sunflowey_page_view(self):
found = resolve('/hero/sunflowey/')
self.assertEqual(found.func.__name__, SunfloweyView.as_view().__name__)
\ No newline at end of file
......@@ -4,4 +4,6 @@ from .views import HeroesView, CloudView, JesterView, SunfloweyView
urlpatterns = [
url(r'^heroes/', HeroesView.as_view(), name='Heroes'),
url(r'^hero/cloud/', CloudView.as_view(), name='Detail - Cloud'),
url(r'^hero/jester/', JesterView.as_view(), name='Detail - Jester'),
url(r'^hero/sunflowey/', SunfloweyView.as_view(), name='Detail - Sunflowey'),
]
\ 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