Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 04a7a7d8 authored by vitosavero's avatar vitosavero
Browse files

fix functionality test

parent f2bbfbb3
No related branches found
No related tags found
1 merge request!1Homepage
......@@ -5,7 +5,7 @@ class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
self.browser.implicitly_wait(3)
self.browser.implicitly_wait(300)
def tearDown(self):
self.browser.quit()
......@@ -13,7 +13,11 @@ class NewVisitorTest(unittest.TestCase):
def test_can_start(self):
self.browser.get('http://localhost:8000')
self.assertIn('Homepage', self.browser.title)
self.fail('Finish the test!')
checkBody = self.browser.page_source
self.assertIn('Hello World!', checkBody)
self.assertIn('Vitosavero Avila Wibisono', checkBody)
self.assertIn('1506688872', checkBody)
if __name__ == '__main__':
unittest.main(warnings='ignore')
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment