class TestCircleCross(unittest.TestCase): def setUp(self): from bokeh.glyphs import CircleCross self.test_circle_cross =CircleCross() def test_expected_values(self): self.assertEqual(self.test_circle_cross.__view_model__,'circle_cross') def test_to_glyphspec(self): self.assertEqual(self.test_circle_cross.to_glyphspec(), {'line_color': {'value': 'black'}, 'fill_color': {'value': 'gray'}, 'y': {'units': 'data', 'field': 'y'}, 'x': {'units': 'data', 'field': 'x'}, 'type': 'circle_cross', 'size': {'units': 'screen', 'field': None, 'default': 4}})
class TestCircleCross(unittest.TestCase): def setUp(self): from bokeh.glyphs import CircleCross self.test_circle_cross = CircleCross() def test_expected_values(self): self.assertEqual(self.test_circle_cross.__view_model__, 'circle_cross') def test_to_glyphspec(self): expected = dict(GENERIC_MARKER_DICT) expected['type'] = 'circle_cross' self.assertEqual(self.test_circle_cross.to_glyphspec(), expected)
def test_CircleCross(): marker = CircleCross() yield check_marker, marker yield check_fill, marker yield check_line, marker yield check_props, marker, MARKER, FILL, LINE
def setUp(self): from bokeh.glyphs import CircleCross self.test_circle_cross = CircleCross()
] markers = [ ("circle", Circle(x="x", y="y", radius=0.1, radius_units="data", fill_color="#3288BD")), ("circle_x", CircleX(x="x", y="y", size="sizes", line_color="#DD1C77", fill_color=None)), ("circle_cross", CircleCross(x="x", y="y", size="sizes", line_color="#FB8072", fill_color=None, line_width=2)), ("square", Square(x="x", y="y", size="sizes", fill_color="#74ADD1")), ("square_x", SquareX(x="x", y="y", size="sizes", line_color="#FDAE6B", fill_color=None, line_width=2)), ("square_cross", SquareCross(x="x", y="y", size="sizes", line_color="#7FC97F",