diff options
| author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-26 00:06:00 +0000 |
|---|---|---|
| committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-26 00:06:00 +0000 |
| commit | 45a6ee50b10c5800cc9a8fd95bf55d9a734b0fe9 (patch) | |
| tree | 878a9e2c67aff61ae5eb42242372da32b946b67a | |
| parent | 0d35c96f1afd8b058a6431b944130e5d7bfe41bb (diff) | |
193: Removed depreciated public.PublicAPI class; removed corresponding unit tests
| -rw-r--r-- | ipalib/public.py | 5 | ||||
| -rw-r--r-- | ipalib/tests/test_public.py | 17 |
2 files changed, 0 insertions, 22 deletions
diff --git a/ipalib/public.py b/ipalib/public.py index 06f5b2b59..d008e9d57 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -334,8 +334,3 @@ class Property(Attribute, Option): def get_doc(self, _): return _('Property doc') - - -class PublicAPI(plugable.API): - def __init__(self): - super(PublicAPI, self).__init__(Command, Object, Method, Property) diff --git a/ipalib/tests/test_public.py b/ipalib/tests/test_public.py index ea0542550..37a92cbec 100644 --- a/ipalib/tests/test_public.py +++ b/ipalib/tests/test_public.py @@ -495,20 +495,3 @@ class test_prop(ClassChecker): def test_class(self): assert self.cls.__bases__ == (public.Attribute, public.Option) assert self.cls.implements(public.Option) - - -def test_PublicAPI(): - cls = public.PublicAPI - assert issubclass(cls, plugable.API) - - api = cls() - - class cmd1(public.Command): - pass - api.register(cmd1) - - class cmd2(public.Command): - pass - api.register(cmd2) - - api.finalize() |
