def test_like_render_like_form(self):
        template = Template(
            "{% load spirit_tags %}"
            "{% render_like_form comment=comment like=like %}"
        )
        data = {'comment': self.comment, 'like': None}
        template.render(Context(data))
        context = render_like_form(**data)
        self.assertEqual(context['next'], None)
        self.assertIsInstance(context['form'], LikeForm)
        self.assertEqual(context['comment_id'], self.comment.pk)
        self.assertEqual(context['like'], None)

        like = CommentLike.objects.create(user=self.user, comment=self.comment)
        data['like'] = like
        template.render(Context(data))
        context = render_like_form(**data)
        self.assertEqual(context['like'], like)
should display the like form
dataset/ETHPy150Open nitely/Spirit/spirit/comment/like/tests.py/LikeTemplateTagsTest.test_like_render_like_form