diff options
Diffstat (limited to 'ipalib/tests')
-rw-r--r-- | ipalib/tests/test_plugable.py | 15 | ||||
-rw-r--r-- | ipalib/tests/test_public.py | 1 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ipalib/tests/test_plugable.py b/ipalib/tests/test_plugable.py index 0e170564..ebc3a78f 100644 --- a/ipalib/tests/test_plugable.py +++ b/ipalib/tests/test_plugable.py @@ -352,18 +352,19 @@ def test_Registrar(): def test_API(): assert issubclass(plugable.API, plugable.ReadOnly) - # Setup the test plugins, create the Registrar: - class ExampleProxy(plugable.Proxy): - __slots__ = ['method'] - + # Setup the test bases, create the API: class base0(plugable.Plugin): - proxy = ExampleProxy + public = frozenset(( + 'method', + )) def method(self, n): return n class base1(plugable.Plugin): - proxy = ExampleProxy + public = frozenset(( + 'method', + )) def method(self, n): return n + 1 @@ -415,7 +416,7 @@ def test_API(): for p in xrange(3): plugin_name = get_plugin(b, p) proxy = ns[plugin_name] - assert isinstance(proxy, ExampleProxy) + assert isinstance(proxy, plugable.Proxy) assert proxy.name == plugin_name assert read_only(ns, plugin_name) is proxy assert read_only(proxy, 'method')(7) == 7 + b diff --git a/ipalib/tests/test_public.py b/ipalib/tests/test_public.py index bfe951ab..0985658e 100644 --- a/ipalib/tests/test_public.py +++ b/ipalib/tests/test_public.py @@ -28,7 +28,6 @@ from ipalib import public, plugable, errors def test_cmd(): cls = public.cmd assert issubclass(cls, plugable.Plugin) - assert cls.proxy is public.cmd_proxy def test_obj(): |