def test_restricted_is_invisible(self):
        restricted_forum = ForumFactory()
        # Make it restricted.
        ct = ContentType.objects.get_for_model(restricted_forum)
        PermissionFactory(codename='forums_forum.view_in_forum', content_type=ct,
                          object_id=restricted_forum.id)

        response = get(self.client, 'forums.forums')
        self.assertNotContains(response, restricted_forum.slug)
Forums with restricted view_in permission shouldn't show up.
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_templates.py/ForumsTemplateTests.test_restricted_is_invisible