def test_poll_is_closed(self):
        """
        Should be true when close_at > now
        """
        yesterday = timezone.now() - timezone.timedelta(days=1)
        tomorrow = timezone.now() + timezone.timedelta(days=1)
        poll_old = CommentPoll.objects.create(comment=self.comment, name='bar', close_at=yesterday)
        poll_new = CommentPoll.objects.create(comment=self.comment, name='bar2', close_at=tomorrow)
        self.assertFalse(self.poll.is_closed)
        self.assertTrue(poll_old.is_closed)
        self.assertFalse(poll_new.is_closed)
dataset/ETHPy150Open nitely/Spirit/spirit/comment/poll/tests.py/PollModelsTest.test_poll_is_closed/original