Finalised FT.

parent 119bd0a5
...@@ -34,7 +34,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -34,7 +34,7 @@ class NewVisitorTest(unittest.TestCase):
# She clicks this and she is redirected back to the wiki's homepage. # She clicks this and she is redirected back to the wiki's homepage.
self.browser.get('http://localhost:8000/heroes') self.browser.get('http://localhost:8000/heroes')
# She decides to do it again # She decides to do it again (added for comprehensiveness)
self.browser.get('http://localhost:8000/hero/sunflowey') self.browser.get('http://localhost:8000/hero/sunflowey')
self.assertIn('Detail - Sunflowey', self.browser.title) self.assertIn('Detail - Sunflowey', self.browser.title)
self.browser.get('http://localhost:8000/heroes') self.browser.get('http://localhost:8000/heroes')
...@@ -43,7 +43,5 @@ class NewVisitorTest(unittest.TestCase): ...@@ -43,7 +43,5 @@ class NewVisitorTest(unittest.TestCase):
self.assertIn('Detail - Jester', self.browser.title) self.assertIn('Detail - Jester', self.browser.title)
self.browser.get('http://localhost:8000/heroes') self.browser.get('http://localhost:8000/heroes')
self.fail('Finish the test!')
if __name__ == '__main__': if __name__ == '__main__':
unittest.main(warnings='ignore') unittest.main(warnings='ignore')
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