Fakultas Ilmu Komputer UI

tests.py 36 KB
Newer Older
1001
1002
            }
        )
Glenda Emanuella Sutanto's avatar
Glenda Emanuella Sutanto committed
1003

1004
1005
    def test_quiz_result_saved(self):
        self.assertEqual(QuizResult.objects.count(), 1)
Glenda Emanuella Sutanto's avatar
Glenda Emanuella Sutanto committed
1006

1007
    def test_quiz_result_string(self):
Glenda Emanuella Sutanto's avatar
Glenda Emanuella Sutanto committed
1008
        self.assertEqual(str(self.quiz_result), str(self.diet_profile))
For faster browsing, not all history is shown. View entire blame