diff options
author | adityacp | 2016-12-01 16:01:09 +0530 |
---|---|---|
committer | adityacp | 2016-12-01 16:01:09 +0530 |
commit | f76c6c7aab4df2f743259334aa91ca295cb854ee (patch) | |
tree | d63c7ce7e5f6d1c97d401d317a5211837fb011aa /yaksh/test_models.py | |
parent | 4b501a76d19e0ecbb2f75d4e2402a24a3bb47429 (diff) | |
download | online_test-f76c6c7aab4df2f743259334aa91ca295cb854ee.tar.gz online_test-f76c6c7aab4df2f743259334aa91ca295cb854ee.tar.bz2 online_test-f76c6c7aab4df2f743259334aa91ca295cb854ee.zip |
change in quiz model test to check instructions
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index e7f3016..1aeffb6 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -46,7 +46,7 @@ def setUpModule(): attempts_allowed=1, time_between_attempts=0, description='demo quiz', pass_criteria=0, language='Python', prerequisite=None, - course=course) + course=course, instructions="Demo Instructions") Quiz.objects.create(start_date_time=datetime(2014, 10, 9, 10, 8, 15, 0, tzinfo=pytz.utc), @@ -56,7 +56,7 @@ def setUpModule(): attempts_allowed=-1, time_between_attempts=0, description='demo quiz', pass_criteria=40, language='Python', prerequisite=quiz, - course=course) + course=course, instructions="Demo Instructions") with open('/tmp/test.txt', 'wb') as f: f.write('2'.encode('ascii')) @@ -239,6 +239,7 @@ class QuizTestCases(unittest.TestCase): self.assertEqual(self.quiz1.language, 'Python') self.assertEqual(self.quiz1.pass_criteria, 0) self.assertEqual(self.quiz1.prerequisite, None) + self.assertEqual(self.quiz1.instructions, "Demo Instructions") def test_is_expired(self): self.assertFalse(self.quiz1.is_expired()) |