summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-10-13 22:23:19 -0600
committerJason Gerard DeRose <jderose@redhat.com>2009-10-14 15:07:17 -0600
commit5c9437b9e683a5f721595a5e312e4d61a11b60c7 (patch)
tree5ab4ec1fa7acd241c48c678a4f650fd3c9ff5f1f /tests/test_ipalib
parentf58ff2921defef330d53e08e427a82ced7585c88 (diff)
downloadfreeipa-5c9437b9e683a5f721595a5e312e4d61a11b60c7.tar.gz
freeipa-5c9437b9e683a5f721595a5e312e4d61a11b60c7.tar.xz
freeipa-5c9437b9e683a5f721595a5e312e4d61a11b60c7.zip
Removed util.add_global_options() and frontend.Application
Diffstat (limited to 'tests/test_ipalib')
-rw-r--r--tests/test_ipalib/test_frontend.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/test_ipalib/test_frontend.py b/tests/test_ipalib/test_frontend.py
index 53843cee8..71d902403 100644
--- a/tests/test_ipalib/test_frontend.py
+++ b/tests/test_ipalib/test_frontend.py
@@ -893,40 +893,3 @@ class test_Property(ClassChecker):
assert isinstance(param, parameters.Str)
assert param.name == 'givenname'
assert param.doc == 'User first name'
-
-
-class test_Application(ClassChecker):
- """
- Test the `ipalib.frontend.Application` class.
- """
- _cls = frontend.Application
-
- def test_class(self):
- """
- Test the `ipalib.frontend.Application` class.
- """
- assert self.cls.__bases__ == (frontend.Command,)
- assert type(self.cls.application) is property
-
- def test_application(self):
- """
- Test the `ipalib.frontend.Application.application` property.
- """
- assert 'application' in self.cls.__public__ # Public
- assert 'set_application' in self.cls.__public__ # Public
- app = 'The external application'
- class example(self.cls):
- 'A subclass'
- for o in (self.cls(), example()):
- assert read_only(o, 'application') is None
- e = raises(TypeError, o.set_application, None)
- assert str(e) == (
- '%s.application cannot be None' % o.__class__.__name__
- )
- o.set_application(app)
- assert read_only(o, 'application') is app
- e = raises(AttributeError, o.set_application, app)
- assert str(e) == (
- '%s.application can only be set once' % o.__class__.__name__
- )
- assert read_only(o, 'application') is app