Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1506722720-practice
Commits
c941895b
Commit
c941895b
authored
Sep 17, 2019
by
Dwi Nanda Susanto
Browse files
update pass test for simple homepage
parent
6fa265e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
functional_tests.py
View file @
c941895b
...
...
@@ -11,7 +11,6 @@ class NewVisitorTest(unittest.TestCase):
self
.
browser
.
get
(
'http://localhost:8000'
)
# She notices the page title and header mention to-do lists
self
.
assertIn
(
'Simple Homepage'
,
self
.
browser
.
title
)
self
.
fail
(
'Finish the test!'
)
# She is invited to enter a to-do item straight away
# [...rest of comments as before]
if
__name__
==
'__main__'
:
...
...
lists/views.py
View file @
c941895b
...
...
@@ -3,4 +3,4 @@ from django.http import HttpResponse
# Create your views here.
def
home_page
(
req
):
return
HttpResponse
(
'<html><title>To-Do lists</title></html>'
)
\ No newline at end of file
return
HttpResponse
(
'<html><title>Simple Homepage</title><h1>Dwi Nanda Susanto</h1><h2>1506722720</h2></html>'
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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