

def test_can_return_the_proper_item_link(self):
    feed = LastTopicsFeed()
    request = self.factory.get('/')
    self.user = self.user
    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/VarMisuse@27/38 `request`->`self`