diff options
author | mahesh | 2017-04-07 16:48:25 +0530 |
---|---|---|
committer | mahesh | 2017-04-07 16:48:25 +0530 |
commit | de2a369a4908046eef41f01537fd39442e14365c (patch) | |
tree | 6b0dd1067987af463e67defd60a559fc4b49a479 /yaksh/test_views.py | |
parent | a9d7b48b6a5a79bf619500463d89f03e8ca1b7bb (diff) | |
parent | ad73f7b938b7620ab4be202dc33c699cf5cb4ac5 (diff) | |
download | online_test-de2a369a4908046eef41f01537fd39442e14365c.tar.gz online_test-de2a369a4908046eef41f01537fd39442e14365c.tar.bz2 online_test-de2a369a4908046eef41f01537fd39442e14365c.zip |
Merge branch 'master' of https://github.com/fossee/online_test into kill_stray_processes
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index aa6561a..3fcdde2 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -884,7 +884,9 @@ class TestAddCourse(TestCase): response = self.client.post(reverse('yaksh:add_course'), data={'name': 'new_demo_course_1', 'active': True, - 'enrollment': 'open' + 'enrollment': 'open', + 'start_enroll_time': '2016-01-10 09:00:15', + 'end_enroll_time': '2016-01-15 09:00:15', } ) course_list = Course.objects.all().order_by('-id') @@ -892,7 +894,6 @@ class TestAddCourse(TestCase): self.assertEqual(new_course.name, 'new_demo_course_1') self.assertEqual(new_course.enrollment, 'open') self.assertEqual(new_course.active, True) - self.assertEqual(response.status_code, 302) self.assertRedirects(response, '/exam/manage/') @@ -1130,7 +1131,7 @@ class TestEnrollRequest(TestCase): ), follow=True ) - self.assertRedirects(response, '/exam/manage/') + self.assertRedirects(response, '/exam/manage/courses/') class TestViewAnswerPaper(TestCase): |