def METHOD_NAME(self):
    client = test.Client(raise_request_exception=False)
    response = client.get("/will-trigger-500/")
    self.assertEqual(response.status_code, 500)
    self.assertTemplateUsed(response, "500.html")