def test_post_render_static_polls_close_at(self):
        """
        Should render the static polls with close_at
        """
        now = timezone.now()
        comment = utils.create_comment(topic=self.topic, comment_html="<poll name=foo>")
        CommentPoll.objects.create(comment=comment, name='foo', title="my poll", close_at=now)

        comment_html = post_render_static_polls(comment)
        self.assertTrue('close at:' in comment_html)
        self.assertTrue('Name:' in comment_html)
        self.assertTrue('choice selection:' in comment_html)
        self.assertTrue('mode:' in comment_html)
dataset/ETHPy150Open nitely/Spirit/spirit/comment/poll/tests.py/PollUtilsTest.test_post_render_static_polls_close_at/original