def test_login_actually_works(self): admin_login(self) self.assertIn('Welcome', self.browser.title)
def setUp(self): self.browser = webdriver.Chrome() self.browser.get('http://localhost:8000') time.sleep(sleep_time) admin_login(self)