def test_topic_detail_view_invalid_slug(self):
        utils.login(self)
        category = utils.create_category()
        topic = utils.create_topic(category=category)
        response = self.client.get(reverse('spirit:topic:detail', kwargs={'pk': topic.pk,
                                                                          'slug': 'bar'}))
        self.assertRedirects(response, topic.get_absolute_url(), status_code=301)
invalid slug
dataset/ETHPy150Open nitely/Spirit/spirit/topic/tests.py/TopicViewTest.test_topic_detail_view_invalid_slug