def test_positive_int_negative_int(): with pytest.raises(ArgumentTypeError): positive_int('-5')
def test_positive_int_not_int(): with pytest.raises(ArgumentTypeError): positive_int('not_an_int')
def test_positive_int_valid(): assert positive_int('123') == 123