def test_positive_integer_3(): """Assert that the TPOT CLI interface's integer parsing throws an exception when n is not an integer""" try: positive_integer('foobar') assert False # Should be unreachable except Exception: pass
def test_positive_integer_2(): """Assert that the TPOT CLI interface's integer parsing returns the integer value of a string encoded integer when n > 0.""" assert 1 == positive_integer('1')