def test_reply_without_post_permission(self):
        rforum = RestrictedForumFactory(permission_code='forums_forum.post_in_forum')
        t = ThreadFactory(forum=rforum)
        u = UserFactory()

        self.client.login(username=u.username, password='testpass')
        with patch.object(Forum, 'allows_viewing_by', Mock(return_value=True)):
            response = post(self.client, 'forums.reply', {'content': 'Blahs'},
                            args=[t.forum.slug, t.id])
        eq_(403, response.status_code)
Posting without post_in_forum permission should 403.
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_views.py/PostPermissionsTests.test_reply_without_post_permission