Files
freeipa/ipatests/test_integration/test_ipalib_util.py
T
Felipe Barreto be66eadb62 Fixing tox and pylint errors
Fixing import errors introduced by commits
icac3475a0454b730d6e5b2093c2e63d395acd387 and
0b7d9c5.

https://pagure.io/freeipa/issue/7132

Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
2017-10-23 18:11:30 +02:00

24 lines
585 B
Python

#
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""
Test the `ipalib.util` module.
This tests is in test_integration beucase we only can import ipaplatform here.
"""
from ipalib import util
from ipaplatform.paths import paths
import pytest
pytestmark = pytest.mark.tier0
def test_hardcoded_paths_are_right():
"""
Test if constants created in ipalib.util are in sync with
paths declared in ipaplatform.paths
"""
assert util._IPA_CLIENT_SYSRESTORE == paths.IPA_CLIENT_SYSRESTORE
assert util._IPA_DEFAULT_CONF == paths.IPA_DEFAULT_CONF