diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-26 23:53:44 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-26 23:53:44 -0600 |
commit | 4fe03f5e17dfe9d4478a75dfada2282535c989fe (patch) | |
tree | 65fd4b6961172b92e5ecd7d15100a866a9623a8c /tests | |
parent | 6b8abb0d78a8d86d7ca52083a267fe226bf74656 (diff) | |
download | freeipa-4fe03f5e17dfe9d4478a75dfada2282535c989fe.tar.gz freeipa-4fe03f5e17dfe9d4478a75dfada2282535c989fe.tar.xz freeipa-4fe03f5e17dfe9d4478a75dfada2282535c989fe.zip |
Added API.load_plugins() place-holder, which cascades call to API.bootstrap()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ipalib/test_plugable.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_ipalib/test_plugable.py b/tests/test_ipalib/test_plugable.py index bdbadae5..ba98e752 100644 --- a/tests/test_ipalib/test_plugable.py +++ b/tests/test_ipalib/test_plugable.py @@ -883,3 +883,16 @@ class test_API(ClassChecker): assert o.isdone('bootstrap') is True e = raises(StandardError, o.bootstrap) assert str(e) == 'API.bootstrap() already called' + + def test_load_plugins(self): + """ + Test the `ipalib.plugable.API.load_plugins` method. + """ + o = self.cls() + assert o.isdone('bootstrap') is False + assert o.isdone('load_plugins') is False + o.load_plugins(dry_run=True) + assert o.isdone('bootstrap') is True + assert o.isdone('load_plugins') is True + e = raises(StandardError, o.load_plugins) + assert str(e) == 'API.load_plugins() already called' |