예제 #1
0
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')
예제 #2
0
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')
예제 #3
0
def test_convert_cell_label_to_index(label, expected):
    assert expected == helpers.convert_cell_label_to_index(label)