def test_parse_int_invalid(): from webob.descriptors import parse_int with pytest.raises(ValueError): parse_int("abc")
def test_parse_int_emptystr(): from webob.descriptors import parse_int val = parse_int("") assert val is None
def test_parse_int(): from webob.descriptors import parse_int val = parse_int("123") assert val == 123
def test_parse_int_invalid(): from webob.descriptors import parse_int with pytest.raises(ValueError): parse_int('abc')
def test_parse_int_none(): from webob.descriptors import parse_int val = parse_int(None) assert val is None
def test_parse_int_emptystr(): from webob.descriptors import parse_int val = parse_int('') assert val == None
def test_parse_int(): from webob.descriptors import parse_int val = parse_int('123') assert val == 123
def test_parse_int(): from webob.descriptors import parse_int val = parse_int('123') eq_(val, 123)
def test_parse_int_none(): from webob.descriptors import parse_int val = parse_int(None) assert val == None
def test_parse_int_emptystr(): from webob.descriptors import parse_int val = parse_int('') eq_(val, None)
def test_parse_int_none(): from webob.descriptors import parse_int val = parse_int(None) eq_(val, None)