Commit e5c8a116 authored by Alex Bernard Francia's avatar Alex Bernard Francia

Functional test modified. Test failed, checks for The Good Place in browser title.

parent a4819757
import unittest
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('http://localhost:8000')
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.quit()
def test_can_start_and_retrieve_home_page(self):
self.browser.get('http://localhost:8000')
self.assertIn('The Good Place', self.browser.title)
self.fail('Finish the Test')
# browser = webdriver.Firefox()
# browser.get('http://localhost:8000')
# assert 'Django' in browser.title
assert 'Django' in browser.title
\ No newline at end of file
if __name__ == '__main__':
unittest.main(warnings='ignore')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment