Fakultas Ilmu Komputer UI

Commit 9a8d9f94 authored by Syahrul Ardiansyah's avatar Syahrul Ardiansyah
Browse files

Make functional_tests an app, use LiveServerTestCase

parent de5981c9
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import unittest
from django.test import LiveServerTestCase
import time
import os
class NewVisitorTest(unittest.TestCase):
class NewVisitorTest(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Chrome()
......@@ -20,7 +20,7 @@ class NewVisitorTest(unittest.TestCase):
def test_can_start_a_list_and_retrieve_it_later(self):
# Edith has heard about a cool new online to-do app. She goes
# to check out its homepage
# She notices the page title and header mention to-do lists
self.assertIn('To-Do', self.browser.title)
......@@ -93,7 +93,3 @@ class NewVisitorTest(unittest.TestCase):
# that the site has generated a unique URL for her -- there is some
# explanatory text to that effect.
self.fail('Finish the test!')
if __name__ == '__main__':
Supports Markdown
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