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
1506757352-practice
Commits
b4bb124f
Commit
b4bb124f
authored
Oct 17, 2019
by
Syahrul Ardiansyah
Browse files
Merge branch 'master' of gitlab.cs.ui.ac.id:pmpl/practice-collection/2019/1506757352-practice
parents
95d23e77
536a8040
Pipeline
#23516
passed with stage
in 1 minute and 38 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
latihan2/tests.py
View file @
b4bb124f
...
...
@@ -14,7 +14,7 @@ class HomePageTest(TestCase):
def
test_home_page_returns_correct_html
(
self
):
response
=
self
.
client
.
get
(
'/'
)
html
=
response
.
content
.
decode
(
'utf8'
)
self
.
assertTrue
(
html
.
startswith
(
'<html>'
))
self
.
assertTrue
(
html
.
startswith
(
'<
!DOCTYPE
html>'
))
self
.
assertIn
(
'<title>To-Do lists</title>'
,
html
)
self
.
assertIn
(
'<h1>Syahrul Findi Ardiansyah</h1>'
,
html
)
self
.
assertIn
(
'<h2>1506757352</h2>'
,
html
)
...
...
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