def test_no_url(self):
        response = RedirectView.as_view()(self.rf.get('/foo/'))
        self.assertEqual(response.status_code, 410)
Without any configuration, returns HTTP 410 GONE
dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/RedirectViewTest.test_no_url