예제 #1
0
class TestXmarker(unittest.TestCase):
    def setUp(self):
        from bokeh.glyphs import Xmarker
        self.test_x_marker = Xmarker()

    def test_expected_values(self):
        self.assertEqual(self.test_x_marker.__view_model__,'x')

    def test_to_glyphspec(self):
        self.assertEqual(self.test_x_marker.to_glyphspec(), {'line_color': {'value': 'black'}, 'fill_color': {'value': 'gray'}, 'y': {'units': 'data', 'field': 'y'}, 'x': {'units': 'data', 'field': 'x'}, 'type': 'x', 'size': {'units': 'screen', 'field': None, 'default': 4}})
예제 #2
0
class TestXmarker(unittest.TestCase):
    def setUp(self):
        from bokeh.glyphs import Xmarker
        self.test_x_marker = Xmarker()

    def test_expected_values(self):
        self.assertEqual(self.test_x_marker.__view_model__, 'x')

    def test_to_glyphspec(self):
        expected = dict(GENERIC_MARKER_DICT)
        expected['type'] = 'x'
        self.assertEqual(self.test_x_marker.to_glyphspec(), expected)
예제 #3
0
class TestXmarker(unittest.TestCase):

    def setUp(self):
        from bokeh.glyphs import Xmarker
        self.test_x_marker = Xmarker()

    def test_expected_values(self):
        self.assertEqual(self.test_x_marker.__view_model__, 'x')

    def test_to_glyphspec(self):
        expected = dict(GENERIC_MARKER_DICT)
        expected['type'] = 'x'
        self.assertEqual(self.test_x_marker.to_glyphspec(), expected)
예제 #4
0
 def setUp(self):
     from bokeh.glyphs import Xmarker
     self.test_x_marker = Xmarker()
예제 #5
0
 def setUp(self):
     from bokeh.glyphs import Xmarker
     self.test_x_marker = Xmarker()