diff options
author | ankitjavalkar | 2017-03-06 19:56:56 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-03-06 20:16:38 +0530 |
commit | a53df8040785cffaf46bfc1775c59eed7c4a15c3 (patch) | |
tree | 0d0ad3531b048935043a0634d8ee7d426c597039 /yaksh/test_models.py | |
parent | c118c7eff7abaeba18f7c375828d2e022d21cb9f (diff) | |
download | online_test-a53df8040785cffaf46bfc1775c59eed7c4a15c3.tar.gz online_test-a53df8040785cffaf46bfc1775c59eed7c4a15c3.tar.bz2 online_test-a53df8040785cffaf46bfc1775c59eed7c4a15c3.zip |
Multiple fixes:
- Add error message details to SeleniumTestError
- Fix next question cycling in models
- Fix model test cases
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index b6934e3..cd66aed 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -735,13 +735,13 @@ class AnswerPaperTestCases(unittest.TestCase): # Then self.assertEqual(self.answerpaper.questions_left(), 0) - self.assertTrue(current_question is not None) + self.assertTrue(current_question is None) # When next_question_id = self.answerpaper.next_question(current_question_id) # Then - self.assertTrue(next_question_id is not None) + self.assertTrue(next_question_id is None) def test_update_marks(self): """ Test update_marks method of AnswerPaper""" |