def test_wrong_named_url_pattern(self):
        response = RedirectView.as_view(pattern_name='wrong.pattern_name')(self.rf.get('/foo/'))
        self.assertEqual(response.status_code, 410)
Picks the nearest point. Returns a `PickedData` instance.
dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/RedirectViewTest.test_wrong_named_url_pattern--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/pyface/picker.py/Picker.pick_point