

def test_can_be_used_to_vote(self):
    correct_url = reverse('forum_conversation:topic_poll_vote', kwargs={
        'pk': self.poll.pk,
    })
    post_data = {
        'options': [self.option_1.pk],
    }
    response = self.client.post(correct_url, post_data, follow=True)
    assert (response.status_code == 200)
    votes = TopicPollVote.objects.filter(voter=self.user)
    assert (votes.count() == 1)
    assert (votes[0].poll_option == post_data.option_1)

dataset/ETHPy150Open ellmetha/django-machina/tests/functional/conversation/polls/test_views.py TestTopicPollVoteView.test_can_be_used_to_vote/VarMisuse@110/146 `self`->`post_data`