functional_tests.py 513 B

12345678910111213141516171819
  1. from selenium import webdriver
  2. import unittest
  3. class NewVisitorTest(unittest.TestCase):
  4. def setUp(self):
  5. #self.browser = webdriver.Firefox()
  6. self.browser = webdriver.Chrome()
  7. def tearDown(self):
  8. self.browser.quit()
  9. def test_can_start_a_list_and_retrieve_it_later(self):
  10. self.browser.get('http://localhost:8000')
  11. self.assertIn('To-Do', self.browser.title)
  12. self.fail('Finish the test!')
  13. if __name__ == '__main__':
  14. unittest.main(warnings='ignore')