bokeh.core.properties.FontSize

Here are the examples of the python api bokeh.core.properties.FontSize taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

3 View Source File : test_validation.py
License : MIT License
Project Creator : rthorst

    def test_FontSize(self):
        p = FontSize()
        with pytest.raises(ValueError) as e:
            p.validate("junk")
        assert not str(e).endswith("ValueError")
    def test_Instance(self):

3 View Source File : test_validation.py
License : MIT License
Project Creator : rthorst

    def test_FontSize(self, detail):
        p = FontSize()
        with pytest.raises(ValueError) as e:
            p.validate("junk", detail)
        assert str(e).endswith("ValueError") == (not detail)
    def test_Instance(self, detail):