def test_convert_cell_label_to_index_not_parseable(label): with pytest.raises(ValueError) as err: helpers.convert_cell_label_to_index(label) assert err.match('Unable to parse user-provided label')
def test_convert_cell_label_to_index_not_str(): with pytest.raises(ValueError) as err: helpers.convert_cell_label_to_index(1) assert err.match('Input must be a string')
def test_convert_cell_label_to_index(label, expected): assert expected == helpers.convert_cell_label_to_index(label)