Created
January 16, 2017 06:30
-
-
Save doojinkang/d5defecf978d225fac4eacb714a5a998 to your computer and use it in GitHub Desktop.
Add unittest harness to functional test
This file contains hidden or 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
#!/usr/bin/env python | |
from selenium import webdriver | |
import unittest | |
class FuncitonalTest(unittest.TestCase): | |
def test_first_ft(self): | |
browser = webdriver.Chrome() | |
browser.get('http://localhost:8000') | |
assert 'Django' in browser.title | |
browser.quit() | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment