def validate_abi_type(abi_type): """ Helper function for validating an abi_type """ if not is_recognized_type(abi_type): raise ValueError( "Unrecognized abi_type: {abi_type}".format(abi_type=abi_type))
def validate_abi_type(abi_type): """ Helper function for validating an abi_type """ if not is_recognized_type(abi_type): raise ValueError("Unrecognized abi_type: {abi_type}".format(abi_type=abi_type))
def test_is_recognized_type(abi_type, should_match): is_match = is_recognized_type(abi_type) assert is_match is should_match
def test_is_recognized_type(abi_type, should_match): is_match = is_recognized_type(abi_type) assert is_match is should_match