def METHOD_NAME(test_input, expected_exception):
    # Arrange
    # Act
    with expected_exception:
        result = validate.validate_virt_pxe_boot(test_input)
        # Assert
        assert isinstance(result, bool)
        assert result or not result