summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib/test_config.py
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-10-14 21:22:44 +0200
committerMartin Nagy <mnagy@redhat.com>2008-10-14 21:22:44 +0200
commitff88652a405c7fd9236a9b1d80dd8955a9ca056d (patch)
tree3b8480d9347f871fad54e89fc03bf4e4bc368788 /tests/test_ipalib/test_config.py
parent9788800aa41146551baee6d36314a20203fd9d20 (diff)
downloadfreeipa-ff88652a405c7fd9236a9b1d80dd8955a9ca056d.tar.gz
freeipa-ff88652a405c7fd9236a9b1d80dd8955a9ca056d.tar.xz
freeipa-ff88652a405c7fd9236a9b1d80dd8955a9ca056d.zip
Convert string values to boolean when generating environment
Diffstat (limited to 'tests/test_ipalib/test_config.py')
-rw-r--r--tests/test_ipalib/test_config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_ipalib/test_config.py b/tests/test_ipalib/test_config.py
index 2ec75048a..3fe44136a 100644
--- a/tests/test_ipalib/test_config.py
+++ b/tests/test_ipalib/test_config.py
@@ -37,8 +37,11 @@ def test_generate_env():
query_dns = False,
server = ('first', 'second'),
realm = 'myrealm',
+ # test right conversions
+ server_context = 'off',
)
d = config.generate_env(env)
+ assert d['server_context'] == False
assert d['query_dns'] == False
# Make sure the servers is overwrote properly (that it is still LazyProp)