mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipaplatform: Move all filesystem paths to ipaplatform.paths module
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
committed by
Petr Viktorin
parent
c7edd7b68c
commit
4d2ef43f28
@@ -26,6 +26,7 @@ from ipatests.util import raises, no_set, no_del, read_only
|
||||
from ipatests.util import getitem, setitem, delitem
|
||||
from ipatests.util import ClassChecker, create_test_api
|
||||
from ipalib import plugable, errors, text
|
||||
from ipaplatform.paths import paths
|
||||
|
||||
|
||||
class test_SetProxy(ClassChecker):
|
||||
@@ -277,10 +278,10 @@ class test_Plugin(ClassChecker):
|
||||
Test the `ipalib.plugable.Plugin.call` method.
|
||||
"""
|
||||
o = self.cls()
|
||||
o.call('/bin/true') is None
|
||||
e = raises(errors.SubprocessError, o.call, '/bin/false')
|
||||
o.call(paths.BIN_TRUE) is None
|
||||
e = raises(errors.SubprocessError, o.call, paths.BIN_FALSE)
|
||||
assert e.returncode == 1
|
||||
assert e.argv == ('/bin/false',)
|
||||
assert e.argv == (paths.BIN_FALSE,)
|
||||
|
||||
|
||||
def test_Registrar():
|
||||
|
||||
Reference in New Issue
Block a user