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
1606876052-practice
Commits
ef0327e2
Commit
ef0327e2
authored
Sep 18, 2019
by
Rayza Arasj Mahardhika
Browse files
add closing tag for h1
parent
1709cb9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
lists/tests.py
View file @
ef0327e2
...
...
@@ -16,5 +16,5 @@ class HomePageTest(TestCase):
html
=
response
.
content
.
decode
(
'utf8'
)
self
.
assertTrue
(
html
.
startswith
(
'<html>'
))
self
.
assertIn
(
'<title>Rayza
\'
s Homepage</title>'
,
html
)
self
.
assertIn
(
'<h1>Welcome to Rayza
\'
s Homepage'
,
html
)
self
.
assertIn
(
'<h1>Welcome to Rayza
\'
s Homepage
</h1>
'
,
html
)
self
.
assertTrue
(
html
.
endswith
(
'</html>'
))
lists/views.py
View file @
ef0327e2
...
...
@@ -4,6 +4,6 @@ def home_page(request):
return
HttpResponse
(
'<html>'
+
'<title>Rayza
\'
s Homepage</title>'
+
'<h1>Welcome to Rayza
\'
s Homepage'
+
'<h1>Welcome to Rayza
\'
s Homepage
</h1>
'
+
'</html>'
)
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