Example #1
0
 def test_unlock_unlocks(self):
     self.comment_list.lock()
     response = views.unlock_comments(self.get_request(method='POST', user=self.superuser), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_false(self.comment_list.locked())
Example #2
0
 def test_unlock_unlocks(self):
     self.comment_list.lock()
     response = views.unlock_comments(self.get_request(method='POST', user=self.superuser), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_false(self.comment_list.locked())
Example #3
0
 def test_moderator_required_for_unlock(self):
     self.comment_list.lock()
     response = views.unlock_comments(self.get_request(method='POST', user=self.user), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_true(self.comment_list.locked())
Example #4
0
 def test_moderator_required_for_unlock(self):
     self.comment_list.lock()
     response = views.unlock_comments(self.get_request(method='POST', user=self.user), self.get_context())
     tools.assert_equals(302, response.status_code)
     tools.assert_true(self.comment_list.locked())