Esempio n. 1
0
def test__pop_legend_kwarg_error(keys):
    kws = dict(zip(keys, range(len(keys))))
    with pytest.raises(ValueError):
        bph._pop_legend_kwarg(kws)
Esempio n. 2
0
def test__pop_legend_kwarg(key):
    kws = {'foo': 10, key: 'bar'}
    assert bph._pop_legend_kwarg(kws) == {key: "bar"}