Commit 667e1f0f authored by Dan Mark Restoles's avatar Dan Mark Restoles

second test passed

parent fdededa0
......@@ -5,6 +5,13 @@ from .views import HeroesView, CloudView, JesterView, SunfloweyView
class HeroesPageTest(TestCase):
def test_root_url_resolves_to_heroes_page_view(self):
def test_url_resolves_to_heroes_page_view(self):
found = resolve('/heroes/')
self.assertEqual(found.func.__name__, HeroesView.as_view().__name__)
\ No newline at end of file
self.assertEqual(found.func.__name__, HeroesView.as_view().__name__)
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
......@@ -3,4 +3,5 @@ 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'),
]
\ 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