def _run_checks(case: Case, checks: Iterable[Callable], result: TestResult, response: Union[(requests.Response, WSGIResponse)]) -> None:
    errors = None
    for check in checks:
        check_name = check.__name__
        try:
            check(response, result)
            result.add_success(check_name, case)
        except AssertionError as exc:
            errors = True
            result.add_failure(check_name, case, str(exc))
    if (errors is not None):
        raise AssertionError
def _run_checks(case: Case, checks: Iterable[Callable], result: TestResult, response: Union[(requests.Response, WSGIResponse)]) -> None:
    errors = None
    for check in checks:
        check_name = check.__name__
        try:
            check(response, result)
            result.add_success(check_name, case)
        except AssertionError as exc:
            errors = True
            result.add_failure(check_name, case, str(exc))
    if (errors is not None):
        raise AssertionError