summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib
diff options
context:
space:
mode:
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