def test_render_polls_template_form_close_not_author(self):
        """
        Should *not* display the close button to not poll author
        """
        request = RequestFactory().get('/')
        request.user = utils.create_user()
        out = Template(
            "{% load spirit_tags %}"
            "{% post_render_comment comment=comment %}"
        ).render(Context({'comment': self.user_comment_with_polls, 'request': request, 'csrf_token': 'foo'}))
        self.assertNotEqual(out.strip(), "")
        close_link = reverse('spirit:comment:poll:close', kwargs={'pk': self.user_poll.pk})
        self.assertTrue(out not in close_link)
dataset/ETHPy150Open nitely/Spirit/spirit/comment/poll/tests.py/CommentPollTemplateTagsTest.test_render_polls_template_form_close_not_author/swapped operands of `not in`