def METHOD_NAME(self):
    self.login()
    self.request.is_sudo = lambda: True
    response = sudo(self.request)
    self.assertEqual(response.status_code, 302)
    self.assertEqual(response["Location"], REDIRECT_URL)