diff options
author | adityacp | 2016-04-27 18:22:17 +0530 |
---|---|---|
committer | adityacp | 2016-05-04 22:47:34 +0530 |
commit | 5bb441584628e65fe08ce1f240ad43f5f3ca88a8 (patch) | |
tree | 6ca9a4aaf19099d569f060f19c3ad8af9195a908 /yaksh/tests.py | |
parent | 51ad57a7ef8fa4cab7f4e590a260f18e3040ef74 (diff) | |
download | online_test-5bb441584628e65fe08ce1f240ad43f5f3ca88a8.tar.gz online_test-5bb441584628e65fe08ce1f240ad43f5f3ca88a8.tar.bz2 online_test-5bb441584628e65fe08ce1f240ad43f5f3ca88a8.zip |
test case changes
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r-- | yaksh/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py index 8129ed5..eedcd30 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -134,7 +134,7 @@ class QuestionTestCases(unittest.TestCase): def test_dump_questions_into_json(self): """ Test dump questions into json """ question = Question() - questions = json.loads(question.dump_questions_into_json(self.user1)) + questions = json.loads(question.dump_into_json(self.user1)) for que in questions: self.assertEqual(self.question1.summary, que['summary']) self.assertEqual(self.question1.language, que['language']) @@ -147,7 +147,7 @@ class QuestionTestCases(unittest.TestCase): def test_load_questions_from_json(self): """ Test load questions into database from json """ question = Question() - result = question.load_questions_from_json(self.json_questions_data, self.user1) + result = question.load_from_json(self.json_questions_data, self.user1) question_data = Question.objects.get(pk=27) self.assertEqual(question_data.summary, 'Json Demo') self.assertEqual(question_data.language, 'Python') |