'Reply fields don\'t show if user has no permission to post.'

def test_restricted_hide_reply(self):

    t = ThreadFactory()
    f = t.forum
    ct = ContentType.objects.get_for_model(f)
    PermissionFactory(codename='forums_forum.post_in_forum', content_type=ct, object_id=f.id)
    u = UserFactory()
    self.client.login(username=u.username, password='testpass')
    response = get(self.client, 'forums.posts', args=[f.slug, t.pk])
    self.assertNotContains(response, 'thread-reply')
