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
385a56f1
Commit
385a56f1
authored
Sep 24, 2019
by
Syahrul Ardiansyah
Browse files
Pass the tests
parent
7594a3a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
functional_test.py
View file @
385a56f1
...
...
@@ -33,8 +33,8 @@ class NewVisitorTest(unittest.TestCase):
# She check the comment when there is no item
comment
=
self
.
browser
.
find_element_by_id
(
'comment'
)
self
.
assertEqual
(
comment
,
'yey, waktunya libur'
comment
.
text
,
'yey, waktunya
ber
libur'
)
# She is invited to enter a to-do item straight away
...
...
@@ -70,7 +70,7 @@ class NewVisitorTest(unittest.TestCase):
# She check the comment when there is few items
comment
=
self
.
browser
.
find_element_by_id
(
'comment'
)
self
.
assertEqual
(
comment
,
comment
.
text
,
'sibuk tapi santai'
)
...
...
@@ -84,7 +84,7 @@ class NewVisitorTest(unittest.TestCase):
# She check the comment when there is many items
comment
=
self
.
browser
.
find_element_by_id
(
'comment'
)
self
.
assertEqual
(
comment
,
comment
.
text
,
'oh tidak'
)
...
...
latihan2/templates/home.html
View file @
385a56f1
...
...
@@ -21,5 +21,13 @@
</tr>
{% endfor %}
</table>
{% if items|length > 5 %}
<p
id=
"comment"
>
oh tidak
</p>
{% elif items|length > 0 %}
<p
id=
"comment"
>
sibuk tapi santai
</p>
{% else %}
<p
id=
"comment"
>
yey, waktunya berlibur
</p>
{% endif %}
</body>
</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