'Forums with restricted view_in permission shouldn\'t show up.'

def test_restricted_is_invisible(self):

    restricted_forum = ForumFactory()
    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)
