test/registry_tests.py
def _get_expected_code(expected_failure, version, success_status_code):
    """
    Returns the HTTP status code for the expected failure under the specified protocol version (1 or
    2).

    If none, returns the success status code.
    """
    if not expected_failure:
        return success_status_code

    return expected_failure[version]

    Returns the HTTP status code for the expected failure under the specified protocol version (1 or
    2).

    If none, returns the success status code.
    
Returns the HTTP status code for the expected failure under the specified protocol version (1 or
2).

If none, returns the success status code.
Returns the HTTP status code for the expected failure under the specified protocol version ( 1 or 2 ) . If none returns the success status code .
def _get_expected_code(expected_failure, version, success_status_code):
    if not expected_failure:
        return success_status_code
    return expected_failure[version]
def _get_expected_code ( expected_failure , version , success_status_code ) : if not expected_failure : return success_status_code return expected_failure [ version ]
Returns the HTTP status code for the expected failure under the specified protocol version (1 or
2).
Returns the HTTP status code for the expected failure under the specified protocol version ( 1 or 2 ) .
"""
    Returns the HTTP status code for the expected failure under the specified protocol version (1 or
    2).

    If none, returns the success status code.
    """
expected_failure
version
success_status_code