Skip to content

Instantly share code, notes, and snippets.

@doojinkang
Created January 16, 2017 06:30
Show Gist options
  • Save doojinkang/d5defecf978d225fac4eacb714a5a998 to your computer and use it in GitHub Desktop.
Save doojinkang/d5defecf978d225fac4eacb714a5a998 to your computer and use it in GitHub Desktop.
Add unittest harness to functional test
#!/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