def METHOD_NAME(input_addr, expected_result, expected_exception):
    # Arrange
    # Act
    with expected_exception:
        result = validate.ipv4_address(input_addr)
        # Assert
        assert result == expected_result