def test_convert_base_high(number, base): with pytest.raises(ValueError): convert(number, base)
def test_convert_non_base10_number(): with pytest.raises(TypeError): convert("FF", 10)
def test_convert(number, base, expected): assert convert(number, base) == expected