17 lines
439 B
Python
17 lines
439 B
Python
import unittest
|
|
from selenium import webdriver
|
|
|
|
class NewVisitorTest(unittest.TestCase):
|
|
def setUp(self):
|
|
self.browser = webdriver.Firefox()
|
|
|
|
def tearDown(self):
|
|
self.browser.quit()
|
|
|
|
def test_can_start_a_todo_list(self):
|
|
self.browser.get("http://localhost:8000")
|
|
self.assertIn("To-Do", self.browser.title)
|
|
self.fail("Finish the test!")
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main() |