Commit fb2bbb55 authored by Keith Adrian Santos's avatar Keith Adrian Santos

added to functional_test a basic homepage check

parent 56077d8d
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_check_homepage(self):
self.browser.get('http://localhost:8000')
#self.assertIn('Welcome To Django', self.browser.title)
self.assertEqual(
'Welcome to Django',
self.browser.title
)
self.fail('Finish the Test')
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