class TestDiamond(unittest.TestCase): def setUp(self): from bokeh.glyphs import Diamond self.test_diamond = Diamond() def test_expected_values(self): self.assertEqual(self.test_diamond.__view_model__,'diamond') def test_to_glyphspec(self): self.assertEqual(self.test_diamond.to_glyphspec(), {'line_color': {'value': 'black'}, 'fill_color': {'value': 'gray'}, 'y': {'units': 'data', 'field': 'y'}, 'x': {'units': 'data', 'field': 'x'}, 'type': 'diamond', 'size': {'units': 'screen', 'field': None, 'default': 4}})
class TestDiamond(unittest.TestCase): def setUp(self): from bokeh.glyphs import Diamond self.test_diamond = Diamond() def test_expected_values(self): self.assertEqual(self.test_diamond.__view_model__, 'diamond') def test_to_glyphspec(self): expected = dict(GENERIC_MARKER_DICT) expected['type'] = 'diamond' self.assertEqual(self.test_diamond.to_glyphspec(), expected)