diff options
author | CruiseDevice | 2020-05-09 17:42:01 +0530 |
---|---|---|
committer | CruiseDevice | 2020-05-09 17:42:01 +0530 |
commit | 9a8330b74c9ee0ddf8720a7326a699ba32922575 (patch) | |
tree | 6c658831e0d326a6d4f546b35fec25964f61778e /yaksh/test_views.py | |
parent | b36ea2af46cbf50aa7a046aa35d0c5c1543e6623 (diff) | |
download | online_test-9a8330b74c9ee0ddf8720a7326a699ba32922575.tar.gz online_test-9a8330b74c9ee0ddf8720a7326a699ba32922575.tar.bz2 online_test-9a8330b74c9ee0ddf8720a7326a699ba32922575.zip |
Fix pep8
- cover missing tests.
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 555f933..583aaa9 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -3172,7 +3172,8 @@ class TestCourseDetail(TestCase): response = self.client.post(url) self.assertEqual(response.status_code, 302) - def test_enroll_reject_user_where_moderator_is_neither_creator_nor_teacher(self): + def test_enroll_reject_user_where_moderator_is_neither_creator_nor_teacher( + self): self.client.login( username=self.user2.username, password=self.user2_plaintext_pass @@ -3183,6 +3184,17 @@ class TestCourseDetail(TestCase): response = self.client.post(url) self.assertEqual(response.status_code, 404) + def test_get_enroll_reject_user_view(self): + self.client.login( + username=self.user1.username, + password=self.user1_plaintext_pass + ) + url = reverse('yaksh:enroll_reject_user', kwargs={ + 'course_id': self.user1_course.id, + }) + response = self.client.get(url) + self.assertEqual(response.status_code, 302) + def test_toggle_course_status_get(self): self.client.login( username=self.user1.username, |