60b177518e6f6ecbbd56389b4dfa19fb6430ce3a,bokeh/models/tests/test_annotations.py,,test_Legend,#,16

Before Change


    assert legend.legend_padding == 10
    assert legend.legend_spacing == 3
    assert legend.legends == []
    yield check_line_properties, legend, "border_", "//e5e5e5", 1.0, 0.5
    yield check_text_properties, legend, "label_", "10pt", "middle"
    yield check_fill_properties, legend, "background_", "//ffffff", 0.95
    yield (check_properties_existence, legend, [
        "plot",
        "visible",
        "location",
        "orientation",
        "label_standoff",
        "label_height",
        "label_width",
        "glyph_height",
        "glyph_width",
        "legend_margin",
        "legend_padding",
        "legend_spacing",
        "legends",
        "level"],
        prefix("label_", TEXT),
        prefix("border_", LINE),
        prefix("background_", FILL))

def test_ColorBar():
    color_bar = ColorBar()
    assert color_bar.plot is None

After Change




def test_Legend():
    legend = Legend()
    assert legend.plot is None
    assert legend.location == "top_right"
    assert legend.label_standoff == 5
    assert legend.label_height == 20
    assert legend.label_width == 20
    assert legend.glyph_height == 20
    assert legend.glyph_width == 20
    assert legend.legend_padding == 10
    assert legend.legend_spacing == 3
    assert legend.legends == []
    check_line_properties(legend, "border_", "//e5e5e5", 1.0, 0.5)
    check_text_properties(legend, "label_", "10pt", "middle")
    check_fill_properties(legend, "background_", "//ffffff", 0.95)
    check_properties_existence(legend, [
        "plot",
        "visible",
        "location",
        "orientation",
        "label_standoff",
        "label_height",
        "label_width",
        "glyph_height",
        "glyph_width",
        "legend_margin",
        "legend_padding",
        "legend_spacing",
        "legends",
        "level"],
        prefix("label_", TEXT),
        prefix("border_", LINE),
        prefix("background_", FILL))


def test_ColorBar():
    color_bar = ColorBar()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_Legend


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_Legend


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_Label


Project Name: bokeh/bokeh
Commit Name: 60b177518e6f6ecbbd56389b4dfa19fb6430ce3a
Time: 2016-09-21
Author: github@birdsbits.com
File Name: bokeh/models/tests/test_annotations.py
Class Name:
Method Name: test_LabelSet