From 12c02696eab61128748eb4c64f01e83068d6d12f Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 4 Jul 2016 11:17:18 +0530 Subject: changed questions upload, testcases can also be uploaded --- yaksh/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'yaksh/tests.py') diff --git a/yaksh/tests.py b/yaksh/tests.py index f2083dd..88c2efc 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -136,6 +136,7 @@ class QuestionTestCases(unittest.TestCase): self.assertEqual(self.question2.points, q['points']) self.assertTrue(self.question2.active) self.assertEqual(self.question2.snippet, q['snippet']) + self.assertEqual(self.question2.get_test_cases(), q['testcase']) def test_load_questions_from_json(self): """ Test load questions into database from json """ -- cgit