Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606835595-practice
Commits
3e1fbf42
Commit
3e1fbf42
authored
Sep 18, 2019
by
Kevin Albert Simanjuntak
Browse files
change functional_test
parent
9c013268
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
functional_tests.py
View file @
3e1fbf42
...
...
@@ -12,13 +12,16 @@ 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
self
.
browser
.
get
(
'http://localhost:8000'
)
self
.
browser
.
get
(
'http://localhost:8000
/homepage
'
)
# She notices the page title and header mention to-do lists
self
.
assertIn
(
'To-Do'
,
self
.
browser
.
title
)
self
.
fail
(
'Finish the test!'
)
head_text
=
self
.
browser
.
find_element_by_tag_name
(
'head'
).
text
body_text
=
self
.
browser
.
find_element_by_tag_name
(
'body'
).
text
self
.
assertIn
(
'To-Do'
,
self
.
browser
.
title
)
self
.
assertIn
(
'Kevin Albert Simanjuntak'
,
paragraph1_text
)
self
.
assertIn
(
'NPM'
,
body_text
)
# She is invited to enter a to-do item straight away
if
__name__
==
'__main__'
:
unittest
.
main
(
warnings
=
'ignore'
)
\ No newline at end of file
unittest
.
main
(
warnings
=
'ignore'
)
\ No newline at end of file
geckodriver.log
View file @
3e1fbf42
This diff is collapsed.
Click to expand it.
lists/__pycache__/views.cpython-37.pyc
View file @
3e1fbf42
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment