Commit 1efe38c6 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Fixed a few bugs in tests.py

parent 83c618b2
...@@ -34,21 +34,21 @@ class CheckContents(unittest.TestCase): ...@@ -34,21 +34,21 @@ class CheckContents(unittest.TestCase):
self.browser.get('http://localhost:8000/hero/cloud') self.browser.get('http://localhost:8000/hero/cloud')
cloudTitle = self.browser.find_element_by_id('cloudTitle') cloudTitle = self.browser.find_element_by_id('cloudTitle')
self.assertEqual(cloudTitle.get_attribute('innerHTML'), 'Detail - Cloud') self.assertEqual(cloudTitle.get_attribute('innerHTML'), 'Detail - Cloud')
cloudHeader = self.browser.find_element_b_id('cloudHeader') cloudHeader = self.browser.find_element_by_id('cloudHeader')
self.assertEqual(cloudHeader.get_attribute('innerHTML'), 'Detail - Cloud') self.assertEqual(cloudHeader.get_attribute('innerHTML'), 'Detail - Cloud')
def check_jester_page_title_and_heading(self): def check_jester_page_title_and_heading(self):
self.browser.get('http://localhost:8000/hero/jester') self.browser.get('http://localhost:8000/hero/jester')
jesterTitle = self.browser.find_element_by_id('jesterTitle') jesterTitle = self.browser.find_element_by_id('jesterTitle')
self.assertEqual(jesterTitle.get_attribute('innerHTML'), 'Detail - Jester') self.assertEqual(jesterTitle.get_attribute('innerHTML'), 'Detail - Jester')
jesterHeader = self.browser.find_element_b_id('jesterHeader') jesterHeader = self.browser.find_element_by_id('jesterHeader')
self.assertEqual(jesterHeader.get_attribute('innerHTML'), 'Detail - Jester') self.assertEqual(jesterHeader.get_attribute('innerHTML'), 'Detail - Jester')
def check_sunflowey_page_title_and_heading(self): def check_sunflowey_page_title_and_heading(self):
self.browser.get('http://localhost:8000/hero/sunflowey') self.browser.get('http://localhost:8000/hero/sunflowey')
sunfloweyTitle = self.browser.find_element_by_id('sunfloweyTitle') sunfloweyTitle = self.browser.find_element_by_id('sunfloweyTitle')
self.assertEqual(sunfloweyTitle.get_attribute('innerHTML'), 'Detail - Sunflowey') self.assertEqual(sunfloweyTitle.get_attribute('innerHTML'), 'Detail - Sunflowey')
sunfloweyHeader = self.browser.find_element_b_id('sunfloweyHeader') sunfloweyHeader = self.browser.find_element_by_id('sunfloweyHeader')
self.assertEqual(sunfloweyHeader.get_attribute('innerHTML'), 'Detail - Sunflowey') self.assertEqual(sunfloweyHeader.get_attribute('innerHTML'), 'Detail - Sunflowey')
......
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