From 94b449a10e8ba709f64aa56cb18640ba93642cee Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 25 Apr 2016 15:03:16 +0530 Subject: small test case change --- yaksh/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaksh/tests.py b/yaksh/tests.py index f78d151..8129ed5 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -148,7 +148,7 @@ class QuestionTestCases(unittest.TestCase): """ Test load questions into database from json """ question = Question() result = question.load_questions_from_json(self.json_questions_data, self.user1) - question_data = Question.objects.all().last() + question_data = Question.objects.get(pk=27) self.assertEqual(question_data.summary, 'Json Demo') self.assertEqual(question_data.language, 'Python') self.assertEqual(question_data.type, 'Code') -- cgit