diff options
author | prathamesh | 2016-03-31 13:41:43 +0530 |
---|---|---|
committer | prathamesh | 2016-04-01 17:04:56 +0530 |
commit | 3632618c1d52e73980e7e481e997c3eca7845d7f (patch) | |
tree | 0e0721af3fafe17b0b336680349b66c586f6308d /yaksh/tests.py | |
parent | b121d2215b7cd5f4de9d78a0bee015952d3f5d97 (diff) | |
download | online_test-3632618c1d52e73980e7e481e997c3eca7845d7f.tar.gz online_test-3632618c1d52e73980e7e481e997c3eca7845d7f.tar.bz2 online_test-3632618c1d52e73980e7e481e997c3eca7845d7f.zip |
Django 1.5.7 does not support first()
So had to make changes.
Diffstat (limited to 'yaksh/tests.py')
-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 0286232..f33f948 100644 --- a/yaksh/tests.py +++ b/yaksh/tests.py @@ -352,7 +352,7 @@ class AnswerPaperTestCases(unittest.TestCase): self.assertEqual(next_question_id.id, 3) questions_answered = self.answerpaper.get_questions_answered() self.assertEqual(questions_answered.count(), 1) - self.assertSequenceEqual(questions_answered, [self.questions.first()]) + self.assertSequenceEqual(questions_answered, [self.questions[0]]) questions_unanswered = self.answerpaper.get_questions_unanswered() self.assertEqual(questions_unanswered.count(), 2) self.assertSequenceEqual(questions_unanswered, |