def test_registry(self):
        """
        Test bauble.pluginmgr.PluginRegistry
        """
        # test that adding works
        PluginRegistry.add(A)
        self.assert_(PluginRegistry.exists(A))

        # test that removing works
        PluginRegistry.remove(A)
        self.assert_(not PluginRegistry.exists(A))
Пример #2
0
    def test_registry(self):
        """
        Test bauble.pluginmgr.PluginRegistry
        """

        ## this is the plugin object
        p = A()

        # test that adding works
        PluginRegistry.add(p)
        self.assert_(PluginRegistry.exists(p))

        # test that removing works
        PluginRegistry.remove(p)
        self.assert_(not PluginRegistry.exists(p))
Пример #3
0
    def test_registry(self):
        """
        Test bauble.pluginmgr.PluginRegistry
        """

        ## this is the plugin object
        p = A()

        # test that adding works
        PluginRegistry.add(p)
        self.assert_(PluginRegistry.exists(p))

        # test that removing works
        PluginRegistry.remove(p)
        self.assert_(not PluginRegistry.exists(p))