diff options
author | adityacp | 2016-04-25 15:03:16 +0530 |
---|---|---|
committer | adityacp | 2016-05-04 22:47:34 +0530 |
commit | 94b449a10e8ba709f64aa56cb18640ba93642cee (patch) | |
tree | ad0a834ebb5826cc8bb7c9e7c666e4431cca0741 /yaksh | |
parent | 83b4826a242a6825197e42eb233f9301f99f3716 (diff) | |
download | online_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.py | 2 |
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') |