def wsgi_test(case: Case, checks: Iterable[Callable], result: TestResult, auth: Optional[RawAuth], auth_type: Optional[str], headers: Optional[Dict[(str, Any)]]) -> None:
    headers = _prepare_wsgi_headers(headers, auth, auth_type)
    with catching_logs(LogCaptureHandler(), level=logging.DEBUG) as recorded:
        response = case.call_wsgi(headers=headers)
    result.logs.extend(recorded.records)
    _run_checks(case, checks, result, response)
def wsgi_test(case: Case, checks: Iterable[Callable], result: TestResult, auth: Optional[RawAuth], auth_type: Optional[str], headers: Optional[Dict[(str, Any)]]) -> None:
    headers = _prepare_wsgi_headers(headers, auth, auth_type)
    with catching_logs(LogCaptureHandler(), level=logging.DEBUG) as recorded:
        response = case.call_wsgi(headers=headers)
    result.logs.extend(recorded.records)
    _run_checks(case, checks, result, response)