Last active
December 30, 2015 05:12
-
-
Save xiantail/05baade5ea5f29062828 to your computer and use it in GitHub Desktop.
Test-Driven Develpment with Python / Chapter 1
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
from selenium import webdriver | |
browser = webdriver.Firefox() | |
browser.get('localhost:8000') | |
assert "Django" in browser.title |
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
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