コード例 #1
0
 def test_with_doc(self, test_plot, test_table):
     from bokeh.models import Button
     d = Document()
     d.add_root(test_plot)
     d.add_root(test_table)
     assert beb._any([d], lambda x: isinstance(x, object)) is True
     assert beb._any([d], lambda x: isinstance(x, Button)) is False
コード例 #2
0
 def test_with_doc(self, test_plot, test_table):
     from bokeh.models import Button
     d = Document()
     d.add_root(test_plot)
     d.add_root(test_table)
     assert beb._any([d], lambda x: isinstance(x, object)) is True
     assert beb._any([d], lambda x: isinstance(x, Button)) is False
コード例 #3
0
 def test_with_models(self, test_plot, test_table):
     from bokeh.models import Button
     assert beb._any([test_plot, test_table], lambda x: isinstance(x, object)) is True
     assert beb._any([test_plot, test_table], lambda x: isinstance(x, Button)) is False
コード例 #4
0
 def test_with_models(self, test_plot, test_table):
     from bokeh.models import Button
     assert beb._any([test_plot, test_table],
                     lambda x: isinstance(x, object)) is True
     assert beb._any([test_plot, test_table],
                     lambda x: isinstance(x, Button)) is False