def METHOD_NAME(
    cls,
    expected_class,
    status,
    code,
    message,
    response_headers,
    post_params=None,
):
    actual_exception = interpret_b2_error(status, code, message, response_headers, post_params)
    assert isinstance(actual_exception, expected_class)
    return actual_exception