def test_can_return_the_proper_item_link(self):
        # Setup
        feed = LastTopicsFeed()
        request = self.factory.get('/')
        request.user = self.user
        # Run & check
        assert feed.item_link(self.topic_2) == reverse(
            'forum_conversation:topic', kwargs={
                'forum_slug': self.topic_2.forum.slug, 'forum_pk': self.topic_2.forum.pk,
                'slug': self.topic_2.slug, 'pk': self.topic_2.id,
            })
dataset/ETHPy150Open ellmetha/django-machina/tests/functional/feeds/test_feeds.py/TestLastTopicsFeed.test_can_return_the_proper_item_link/original