1 from selenium import webdriver
2 from selenium.common.exceptions import NoSuchElementException
6 from sayings import get_saying
8 class HTTPStatusTest(unittest.TestCase):
9 def checkURL(self, url):
12 h1 = self.browser.find_element_by_xpath("//h1")
13 self.assertNotEqual(h1.text, "Page Not Found")
14 except NoSuchElementException:
19 self.browser = webdriver.Firefox()
20 path = "http://127.0.0.1:5014/"
21 urls = ["", "index", "competition", "task", "submission", "coursematerial",
24 self.checkURL(path + url)
27 if __name__ == "__main__":