def test_get_range_with_pandas_group(pd): from bokeh.sampledata.iris import flowers g = flowers.groupby('species') r = bph._get_range(g) assert isinstance(r, FactorRange) assert r.factors == ['setosa', 'versicolor', 'virginica'] # should always be sorted
def test_get_range_with_pandas_group(): from bokeh.sampledata.iris import flowers g = flowers.groupby('species') r = _get_range(g) assert isinstance(r, FactorRange) assert r.factors == ['setosa', 'versicolor', 'virginica'] # should always be sorted