-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python | ||
import unittest | ||
from selenium import webdriver | ||
|
||
|
||
class NewVisitorTest(unittest.TestCase): | ||
def setUp(self): | ||
self.browser = webdriver.Firefox() | ||
|
||
def tearDown(self): | ||
self.browser.quit() | ||
|
||
def test_can_start_django(self): | ||
# Edith has heard about a cool new online app | ||
# She goes to check out its homepage | ||
self.browser.get("http://localhost:8000") | ||
|
||
# She notices the page title and header mention Django | ||
self.assertIn("Django", self.browser.title) | ||
|
||
# She is invited to get started | ||
self.fail("Finish the test!") | ||
|
||
# Satisfied, she goes back to sleep | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |