# Path: dyndnsc/plugins/manager.py
# ENV_PREFIX = "DYNDNSC_WITH_"
# LOG = logging.getLogger(__name__)
# class PluginProxy(object):
# class NullPluginManager(object):
# class PluginManager(object):
# class EntryPointPluginManager(PluginManager):
# class BuiltinPluginManager(PluginManager):
#     class DefaultPluginManager(EntryPointPluginManager, BuiltinPluginManager):
#     class DefaultPluginManager(BuiltinPluginManager):
#     def __init__(self, call, plugins):
#     def __call__(self, *arg, **kw):
#     def add_plugin(self, plugin, call):
#     def listcall(self, *arg, **kw):
#     def __iter__(self):
#     def __getattr__(self, call):
#     def _nop(self, *args, **kwds):
#     def add_plugin(self, plug):
#     def add_plugins(self, plugins):
#     def configure(self, options):
#     def load_plugins(self):
#     def __init__(self, plugins=(), proxyClass=None):
#     def __getattr__(self, call):
#     def __iter__(self):
#     def add_plugin(self, plugin):
#     def plugin_name(plugin):
#     def add_plugins(self, plugins=()):
#     def configure(self, args):
#     def options(self, parser, env):
#         def get_help(plug):
#     def load_plugins(self):
#     def _get_plugins(self):
#     def _set_plugins(self, plugins):
#     def load_plugins(self):
#     def load_plugins(self):


import unittest
    import mock
    from unittest import mock
from dyndnsc.plugins import manager
# -*- coding: utf-8 -*-

"""Tests for plugin manager."""


try:
except ImportError:



class Dummy(object):
    """Empty Dummy class used to test plugin system."""

    pass


class TestPluginProxy(unittest.TestCase):
    """Test cases for the PluginProxy."""

    def test_proxy_constructor(self):
        """Test the plugin proxy constructor."""
        self.assertRaises(TypeError, manager.PluginProxy)
        self.assertRaises(AttributeError, manager.PluginProxy, "_invalid_interface_method_", [])
        # now a valid method:

# Path: dyndnsc/plugins/manager.py
# ENV_PREFIX = "DYNDNSC_WITH_"
# LOG = logging.getLogger(__name__)
# class PluginProxy(object):
# class NullPluginManager(object):
# class PluginManager(object):
# class EntryPointPluginManager(PluginManager):
# class BuiltinPluginManager(PluginManager):
#     class DefaultPluginManager(EntryPointPluginManager, BuiltinPluginManager):
#     class DefaultPluginManager(BuiltinPluginManager):
#     def __init__(self, call, plugins):
#     def __call__(self, *arg, **kw):
#     def add_plugin(self, plugin, call):
#     def listcall(self, *arg, **kw):
#     def __iter__(self):
#     def __getattr__(self, call):
#     def _nop(self, *args, **kwds):
#     def add_plugin(self, plug):
#     def add_plugins(self, plugins):
#     def configure(self, options):
#     def load_plugins(self):
#     def __init__(self, plugins=(), proxyClass=None):
#     def __getattr__(self, call):
#     def __iter__(self):
#     def add_plugin(self, plugin):
#     def plugin_name(plugin):
#     def add_plugins(self, plugins=()):
#     def configure(self, args):
#     def options(self, parser, env):
#         def get_help(plug):
#     def load_plugins(self):
#     def _get_plugins(self):
#     def _set_plugins(self, plugins):
#     def load_plugins(self):
#     def load_plugins(self):


# Path: dyndnsc/tests/plugins/test_manager.py
import unittest
    import mock
    from unittest import mock
from dyndnsc.plugins import manager

# -*- coding: utf-8 -*-

"""Tests for plugin manager."""


try:
except ImportError:



class Dummy(object):
    """Empty Dummy class used to test plugin system."""

    pass


class TestPluginProxy(unittest.TestCase):
    """Test cases for the PluginProxy."""

    def test_proxy_constructor(self):
        """Test the plugin proxy constructor."""
        self.assertRaises(TypeError, manager.PluginProxy)
        self.assertRaises(AttributeError, manager.PluginProxy, "_invalid_interface_method_", [])
        # now a valid method:

        self.assertEqual(type(manager.PluginProxy("options", [])), manager.PluginProxy)