예제 #1
0
 def test_lock_locks(self):
     response = views.lock_comments(self.get_request(method='POST', user=self.superuser), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_true(self.comment_list.locked())
예제 #2
0
 def test_lock_locks(self):
     response = views.lock_comments(self.get_request(method='POST', user=self.superuser), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_true(self.comment_list.locked())
예제 #3
0
 def test_moderator_required_for_lock(self):
     response = views.lock_comments(self.get_request(method='POST', user=self.user), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_false(self.comment_list.locked())
예제 #4
0
 def test_moderator_required_for_lock(self):
     response = views.lock_comments(self.get_request(method='POST', user=self.user), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_false(self.comment_list.locked())