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
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