diff options
author | adityacp | 2016-07-04 11:17:18 +0530 |
---|---|---|
committer | adityacp | 2016-07-05 15:43:24 +0530 |
commit | 12c02696eab61128748eb4c64f01e83068d6d12f (patch) | |
tree | 1f5ed85bf9859bd4a4bfa29af2ced211bc7b135c /yaksh/tests.py | |
parent | 660a8b4f8b21a1e5836536a9db755fcf840ecd63 (diff) | |
download | online_test-12c02696eab61128748eb4c64f01e83068d6d12f.tar.gz online_test-12c02696eab61128748eb4c64f01e83068d6d12f.tar.bz2 online_test-12c02696eab61128748eb4c64f01e83068d6d12f.zip |
changed questions upload, testcases can also be uploaded
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r-- | yaksh/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 """ |