def test_can_be_used_to_vote(self):
        # Setup
        correct_url = reverse('forum_conversation:topic_poll_vote', kwargs={'pk': self.poll.pk})
        post_data = {
            'options': [self.option_1.pk, ],
        }
        # Run
        response = self.client.post(correct_url, post_data, follow=True)
        # Check
        assert response.status_code == 200
        votes = TopicPollVote.objects.filter(voter=self.user)
        assert votes.count() == 1
        assert votes[0].poll_option == self.option_1
dataset/ETHPy150Open ellmetha/django-machina/tests/functional/conversation/polls/test_views.py/TestTopicPollVoteView.test_can_be_used_to_vote/original