Commit 997e402b authored by ViolanteCodes's avatar ViolanteCodes
Browse files

added a templatenotused assertion to a test

parent 6601b180
......@@ -729,6 +729,8 @@ class TestModeratorViews(TestCase):
response = self.client.get(url, follow=False)
self.assertEqual(response.status_code, 302)
self.assertEqual(response.url, self.login_redirect_url)
self.assertTemplateNotUsed(response, 'anonticket/moderator.html')
# print(response)
def test_moderator_view_GET_no_staff(self):
......@@ -741,7 +743,6 @@ class TestModeratorViews(TestCase):
self.assertTemplateNotUsed(response, 'anonticket/moderator.html')
# print(response)
def test_moderator_view_GET_valid_moderator(self):
"""Test that the moderator view displays correctly if
the user has moderator permissions and is staff."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment