Skip to content

Instantly share code, notes, and snippets.

@xiantail
Last active December 30, 2015 05:12
Show Gist options
  • Save xiantail/05baade5ea5f29062828 to your computer and use it in GitHub Desktop.
Save xiantail/05baade5ea5f29062828 to your computer and use it in GitHub Desktop.
Test-Driven Develpment with Python / Chapter 1
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('localhost:8000')
assert "Django" in browser.title
@xiantail
Copy link
Author

Got following error:

$ python3 functional_test.py
Traceback (most recent call last):
File "functional_test.py", line 6, in
assert "Django" in browser.title
AssertionError

@xiantail
Copy link
Author

The error had gone after starting web test server.
$ python3 manage.py runserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment