'A wrong pattern name returns 410 GONE'

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)
