193: Removed depreciated public.PublicAPI class; removed corresponding unit tests

This commit is contained in:
Jason Gerard DeRose
2008-08-26 00:06:00 +00:00
parent 0d35c96f1a
commit 45a6ee50b1
2 changed files with 0 additions and 22 deletions

View File

@@ -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)

View File

@@ -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()