summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib/test_plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-27 16:08:17 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-27 16:08:17 -0600
commit491e295412fceead7cf0c6c9cdd44904541e4044 (patch)
treedbcede7cc4025a4ccb4a3a31f3a4063672590c95 /tests/test_ipalib/test_plugable.py
parentbb9691099b7b025fc491279314d8803f4fa3b571 (diff)
downloadfreeipa-491e295412fceead7cf0c6c9cdd44904541e4044.tar.gz
freeipa-491e295412fceead7cf0c6c9cdd44904541e4044.tar.xz
freeipa-491e295412fceead7cf0c6c9cdd44904541e4044.zip
Unit test for CLI.boostrap() now checks that -e overrides and values from config files are merged in correctly
Diffstat (limited to 'tests/test_ipalib/test_plugable.py')
-rw-r--r--tests/test_ipalib/test_plugable.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_ipalib/test_plugable.py b/tests/test_ipalib/test_plugable.py
index 50cab9301..85b5303c1 100644
--- a/tests/test_ipalib/test_plugable.py
+++ b/tests/test_ipalib/test_plugable.py
@@ -887,10 +887,11 @@ class test_API(ClassChecker):
assert o.env._isdone('_bootstrap') is False
assert o.env._isdone('_finalize_core') is False
assert o.isdone('bootstrap') is False
- o.bootstrap()
+ o.bootstrap(my_test_override='Hello, world!')
assert o.isdone('bootstrap') is True
assert o.env._isdone('_bootstrap') is True
assert o.env._isdone('_finalize_core') is True
+ assert o.env.my_test_override == 'Hello, world!'
e = raises(StandardError, o.bootstrap)
assert str(e) == 'API.bootstrap() already called'