Commit 7b261226 authored by Keith Adrian Santos's avatar Keith Adrian Santos

added tests for all the ingredients sub-pages

parent c7fad93d
...@@ -10,7 +10,7 @@ class NewVisitorTest(unittest.TestCase): ...@@ -10,7 +10,7 @@ class NewVisitorTest(unittest.TestCase):
def tearDown(self): def tearDown(self):
self.browser.quit() self.browser.quit()
def test_can_check_homepage(self): def test_can_check_homepage_and_every_single_other_page(self):
self.browser.get('http://localhost:8000') self.browser.get('http://localhost:8000')
self.assertIn('Froyo Home Page', self.browser.title) self.assertIn('Froyo Home Page', self.browser.title)
...@@ -24,7 +24,18 @@ class NewVisitorTest(unittest.TestCase): ...@@ -24,7 +24,18 @@ class NewVisitorTest(unittest.TestCase):
self.browser.get('http://localhost:8000/recipes') self.browser.get('http://localhost:8000/recipes')
self.assertIn('Recipes - Home', self.browser.title) self.assertIn('Recipes - Home', self.browser.title)
self.browser.get('http://localhost:8000/ingredients/list')
self.assertIn('Ingredients - List', self.browser.title)
self.browser.get('http://localhost:8000/ingredients/detail')
self.assertIn('Ingredients - Detail', self.browser.title)
self.browser.get('http://localhost:8000/ingredients/update')
self.assertIn('Ingredients - Update', self.browser.title)
self.browser.get('http://localhost:8000/ingredients/create')
self.assertIn('Ingredients - Create', self.browser.title)
self.fail('Finish the Test') 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