From 5bb441584628e65fe08ce1f240ad43f5f3ca88a8 Mon Sep 17 00:00:00 2001 From: adityacp Date: Wed, 27 Apr 2016 18:22:17 +0530 Subject: test case changes --- yaksh/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaksh/tests.py') 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') -- cgit