summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2016-04-25 15:03:16 +0530
committeradityacp2016-05-04 22:47:34 +0530
commit94b449a10e8ba709f64aa56cb18640ba93642cee (patch)
treead0a834ebb5826cc8bb7c9e7c666e4431cca0741 /yaksh
parent83b4826a242a6825197e42eb233f9301f99f3716 (diff)
downloadonline_test-94b449a10e8ba709f64aa56cb18640ba93642cee.tar.gz
online_test-94b449a10e8ba709f64aa56cb18640ba93642cee.tar.bz2
online_test-94b449a10e8ba709f64aa56cb18640ba93642cee.zip
small test case change
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/tests.py2
1 files changed, 1 insertions, 1 deletions
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')