summaryrefslogtreecommitdiff
path: root/yaksh/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r--yaksh/tests.py4
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')