def testEmptyRegistered(self):

        r = PluggableRegistry()

        assert r.pluggable_registered(t=PluggableType.AM) is False
        assert r.pluggable_registered(t=PluggableType.Broker) is False
        assert r.pluggable_registered(t=PluggableType.Orchestrator) is False
    def testRegistration(self):

        r = PluggableRegistry()

        r.register_pluggable(t=PluggableType.Broker, p=MyPlug)

        assert r.pluggable_registered(t=PluggableType.Broker) is True

        methods = r.get_implemented_methods(t=PluggableType.Broker)

        assert "plug_produce_bqm" in methods

        c = r.get_method_callable(t=PluggableType.Broker,
                                  method='plug_produce_bqm')

        assert callable(c) is True

        ret = c(cbm=4)

        assert ret == "Graph is 4 with param"

        r.unregister_pluggable(t=PluggableType.Broker)