test_config: fix fips_mode key in Env

Setting fips_mode to object would fail if ipaplatform.tasks module
wasn't present.

https://fedorahosted.org/freeipa/ticket/5695

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Tomas Krizek 2017-02-27 13:17:17 +01:00 committed by Martin Basti
parent 770d4cda43
commit 5055b34cef

View File

@ -562,9 +562,9 @@ class test_Env(ClassChecker):
# Test using DEFAULT_CONFIG: # Test using DEFAULT_CONFIG:
defaults = dict(constants.DEFAULT_CONFIG) defaults = dict(constants.DEFAULT_CONFIG)
defaults['fips_mode'] = object
(o, home) = self.finalize_core(None, **defaults) (o, home) = self.finalize_core(None, **defaults)
assert list(o) == sorted(defaults) list_o = [key for key in o if key != 'fips_mode']
assert list_o == sorted(defaults)
for (key, value) in defaults.items(): for (key, value) in defaults.items():
if value is object: if value is object:
continue continue