def test_plugin_viewer_set_all(self): viewer = PerspectiveViewer() for plugin in Plugin: viewer.plugin = plugin assert viewer.plugin == plugin.value
def test_plugin_viewer_setattr(self): viewer = PerspectiveViewer() viewer.plugin = Plugin.XBAR assert viewer.plugin == "x_bar"