def METHOD_NAME(  # noqa: PLR0913
    self,
    response,
    summary: str | None = None,
    connection_error: str | None = None,
    parse_error: str | None = None,
    status_category: IssueStatusCategory = "todo",
    release: bool = False,
    sprint: bool = False,
) -> None:
    """Assert that the issue has the expected attributes."""
    issue_status = response.as_dict()["issue_status"][0]
    self.assertEqual("FOO-42", issue_status["issue_id"])
    if summary:
        self.assertEqual(summary, issue_status["summary"])
    if connection_error or parse_error:
        self.assertNotIn("name", issue_status)
        self.assertNotIn("status_category", issue_status)
        if connection_error:
            self.assertIn(connection_error, issue_status["connection_error"])
            self.assertNotIn("parse_error", issue_status)
        if parse_error:
            self.assertIn(parse_error, issue_status["parse_error"])
            self.assertNotIn("connection_error", issue_status)
    else:
        self.assertEqual(self.ISSUE_NAME, issue_status["name"])
        self.assertEqual(status_category, issue_status["status_category"])
        self.assertEqual(self.CREATED, issue_status["created"])
        if sprint:
            self.assertEqual(self.SPRINT_NAME, issue_status["sprint_name"])
            self.assertEqual(self.SPRINT_STATE, issue_status["sprint_state"])
            self.assertEqual(self.SPRINT_ENDDATE, issue_status["sprint_enddate"])
        else:
            self.assertNotIn("sprint_name", issue_status)
            self.assertNotIn("sprint_state", issue_status)
            self.assertNotIn("sprint_enddate", issue_status)
        if release:
            self.assertEqual(self.RELEASE_NAME, issue_status["release_name"])
            self.assertEqual(self.RELEASE_RELEASED, issue_status["release_released"])
            self.assertEqual(self.RELEASE_DATE, issue_status["release_date"])
        else:
            self.assertNotIn("release_name", issue_status)
            self.assertNotIn("release_released", issue_status)
            self.assertNotIn("release_date", issue_status)
        self.assertNotIn("connection_error", issue_status)
        self.assertNotIn("parse_error", issue_status)
    self.assertEqual(
        "https://jira/rest/agile/1.0/issue/FOO-42?fields=created,status,summary,updated,duedate,fixVersions,sprint",
        issue_status["api_url"],
    )
    self.assertEqual("https://jira/browse/FOO-42", issue_status["landing_url"])