Exemplo n.º 1
0
    def test_use_priority(self):
        plugin.use("pil")
        plug, func = plugin.plugin_store["imread"][0]
        print plugin.plugin_store
        assert_equal(plug, "pil")

        plugin.use("test")
        plug, func = plugin.plugin_store["imread"][0]
        print plugin.plugin_store
        assert_equal(plug, "test")
Exemplo n.º 2
0
    def test_use_priority(self):
        plugin.use('pil')
        plug, func = plugin.plugin_store['imread'][0]
        print(plugin.plugin_store)
        assert_equal(plug, 'pil')

        plugin.use('test')
        plug, func = plugin.plugin_store['imread'][0]
        print(plugin.plugin_store)
        assert_equal(plug, 'test')
Exemplo n.º 3
0
    def test_use_priority(self):
        plugin.use(priority_plugin)
        plug, func = plugin.plugin_store['imread'][0]
        print(plugin.plugin_store)
        assert_equal(plug, priority_plugin)

        plugin.use('test')
        plug, func = plugin.plugin_store['imread'][0]
        print(plugin.plugin_store)
        assert_equal(plug, 'test')
Exemplo n.º 4
0
    def test_use_priority(self):
        plugin.use('pil')
        plug, func = plugin.plugin_store['imread'][0]
        print plugin.plugin_store
        assert_equal(plug, 'pil')

        plugin.use('test')
        plug, func = plugin.plugin_store['imread'][0]
        print plugin.plugin_store
        assert_equal(plug, 'test')
Exemplo n.º 5
0
def setup_module(self):
    self.backup_plugin_store = deepcopy(plugin.plugin_store)
    plugin.use("test")  # see ../_plugins/test_plugin.py
Exemplo n.º 6
0
 def test_failed_use(self):
     plugin.use("asd")
Exemplo n.º 7
0
 def test_use(self):
     plugin.use("test")
     plugin.use("test", "imshow")
Exemplo n.º 8
0
def setup_module(self):
    self.backup_plugin_store = deepcopy(plugin.plugin_store)
    plugin.use('test')  # see ../_plugins/test_plugin.py
Exemplo n.º 9
0
 def test_failed_use(self):
     plugin.use('asd')
Exemplo n.º 10
0
 def test_use(self):
     plugin.use('test')
     plugin.use('test', 'imshow')
Exemplo n.º 11
0
 def test_failed_use(self):
     plugin.use('asd')
Exemplo n.º 12
0
 def test_use(self):
     plugin.use('test')
     plugin.use('test', 'imshow')
Exemplo n.º 13
0
def setup_module(self):
    self.backup_plugin_store = deepcopy(plugin.plugin_store)
    plugin.use('test')