Fakultas Ilmu Komputer UI

Commit 938305ca authored by Rani Lasma Uli's avatar Rani Lasma Uli
Browse files

succeed kill mutant2

parent 14135e4f
......@@ -69,8 +69,8 @@ class ListViewTest(TestCase):
html = response.content.decode('utf8')
self.assertIn("oh tidak", html)
# Mutant 1 output: yey, waktunya libur --> isinya 6, harusnya oh tidak
def test_to_kill_Index_mutant1(self):
# Mutant 1 output: yey, waktunya libur --> isinya 6, harusnya oh tidak
Item.objects.all().delete()
# 6 items
......@@ -82,6 +82,20 @@ class ListViewTest(TestCase):
self.assertTrue("oh tidak" in html)
# Mutant 2 output: sibuk tapi santai --> isinya 5, harusnya oh tidak
def test_to_kill_Index_mutant2(self):
Item.objects.all().delete()
# 5 items
for x in range(0,5):
Item.objects.create(text='itemey '+str(x))
response = self.client.get(TO_DO_LIST_URL)
html = response.content.decode('utf8')
self.assertTrue("oh tidak" in html)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment