From 5c9437b9e683a5f721595a5e312e4d61a11b60c7 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 13 Oct 2009 22:23:19 -0600 Subject: Removed util.add_global_options() and frontend.Application --- tests/test_ipalib/test_frontend.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'tests/test_ipalib/test_frontend.py') diff --git a/tests/test_ipalib/test_frontend.py b/tests/test_ipalib/test_frontend.py index 53843cee..71d90240 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 -- cgit