Exemplo n.º 1
0
def test_positive_integer_or_none_4():
    """Assert that the TPOT CLI interface's positive_integer_or_none parsing return None when value is string 'None' or 'none'."""
    assert positive_integer_or_none('none') is None
    assert positive_integer_or_none('None') is None
Exemplo n.º 2
0
def test_positive_integer_or_none_2():
    """Assert that the TPOT CLI interface's positive_integer_or_none parsing returns the integer value of a string encoded integer when n > 0."""
    assert 1 == positive_integer_or_none('1')