def test_new_thread_without_view_permission(self):
        rforum = RestrictedForumFactory()
        ThreadFactory(forum=rforum)
        u = UserFactory()

        self.client.login(username=u.username, password='testpass')
        response = post(self.client, 'forums.new_thread',
                        {'title': 'Blahs', 'content': 'Blahs'},
                        args=[rforum.slug])
        eq_(404, response.status_code)
Making a new thread without view permission should 404.
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_views.py/ThreadAuthorityPermissionsTests.test_new_thread_without_view_permission