def test_use_priority(self): plugin.use(priority_plugin) plug, func = plugin.plugin_store['imread'][0] assert_equal(plug, priority_plugin) plugin.use('test') plug, func = plugin.plugin_store['imread'][0] assert_equal(plug, 'test')
def test_use_priority(self): plugin.use(priority_plugin) plug, func = plugin.plugin_store["imread"][0] assert_equal(plug, priority_plugin) plugin.use("test") plug, func = plugin.plugin_store["imread"][0] assert_equal(plug, "test")
def test_use_priority_with_func(self): plugin.use('pil') plug, func = plugin.plugin_store['imread'][0] assert_equal(plug, 'pil') plugin.use('test', 'imread') plug, func = plugin.plugin_store['imread'][0] assert_equal(plug, 'test') plug, func = plugin.plugin_store['imsave'][0] assert_equal(plug, 'pil') plugin.use('test') plug, func = plugin.plugin_store['imsave'][0] assert_equal(plug, 'test')
def test_use_priority_with_func(self): plugin.use("pil") plug, func = plugin.plugin_store["imread"][0] assert_equal(plug, "pil") plugin.use("test", "imread") plug, func = plugin.plugin_store["imread"][0] assert_equal(plug, "test") plug, func = plugin.plugin_store["imsave"][0] assert_equal(plug, "pil") plugin.use("test") plug, func = plugin.plugin_store["imsave"][0] assert_equal(plug, "test")
def test_failed_use(self): plugin.use('asd')
def test_use(self): plugin.use('test') plugin.use('test', 'imshow')
def setup_module(self): plugin.use('test') # see ../_plugins/test_plugin.py
def setup_module(self): self.backup_plugin_store = deepcopy(plugin.plugin_store) plugin.use('test') # see ../_plugins/test_plugin.py
def test_failed_use(self): plugin.use("asd")
def test_use(self): plugin.use("test") plugin.use("test", "imshow")