Last active
June 2, 2018 18:18
-
-
Save mineta/ab387a5132950cfdbc6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
import unittest | |
class NewVisitorTest(unittest.TestCase): | |
def setUp(self): | |
self.browser = webdriver.Firefox() | |
self.browser.implicitly_wait(3) | |
def tearDown(self): | |
self.browser.quit() | |
def test_it_worked(self): | |
self.browser.get('http://localhost:8000') | |
self.assertIn('Welcome to Django', self.browser.title) | |
if __name__ == '__main__': | |
unittest.main(warnings='ignore') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment