Commit a69429d1 authored by Xavier Calabia's avatar Xavier Calabia

added a few more (nonfunctional) tests in functional_test

added a unit test in \heroes
parent 23809e88
# Create your tests here.
from django.test import TestCase
# Create your tests here.
class HomePageTest(TestCase):
def test_uses_heroes_template(self):
response = self.client.get('/')
self.assertTemplateUsed(response, 'heroes.html')
......@@ -24,6 +24,7 @@ class NewVisitorTest(unittest.TestCase):
# containing more information about the hero (additional stats, lore, image).
# She spots the page title and header mentions the name of the hero she selected.
self.assertIn('[placeholder]', self.browser.title)
# While she is in a specific hero's page, she sees a button labeled "Back to Heroes List".
# She clicks this and she is redirected back to the wiki's homepage.
......
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