Commit 02be6803 authored by Keith Adrian Santos's avatar Keith Adrian Santos

added the 3 home page checkers in functional_test.py

parent 136a3bea
......@@ -11,14 +11,17 @@ class NewVisitorTest(unittest.TestCase):
self.browser.quit()
def test_can_check_homepage(self):
self.browser.get('http://localhost:8000')
#self.assertIn('Welcome To Django', self.browser.title)
self.assertEqual(
'Welcome to Django',
self.browser.title
)
self.browser.get('http://localhost:8000/ingredients')
self.assertIn('Ingredients - Home', self.browser.title)
self.browser.get('http://localhost:8000/orders')
self.assertIn('Orders - Home', self.browser.title)
self.browser.get('http://localhost:8000/recipes')
self.assertIn('Recipes - Home', self.browser.title)
self.fail('Finish the Test')
......
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