Updated unit.utils.safe_walk_test test suite to use salttesting.helpers.ensure_in_syspath()

This commit is contained in:
Pedro Algarvio 2013-06-27 14:18:24 +01:00
parent 0675fae89c
commit bdf808773d

View File

@ -4,27 +4,15 @@ from os.path import join
from shutil import rmtree
from tempfile import mkdtemp
# Import salt libs
try:
import integration
except ImportError:
if __name__ == '__main__':
import sys
sys.path.insert(
0, os.path.abspath(
os.path.join(
os.path.dirname(__file__), '../../'
)
)
)
import integration
# Import Salt Testing libs
from salttesting import TestCase
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
# Import salt libs
import salt.utils
import salt.utils.find
# Import Salt Testing libs
from salttesting import TestCase, skipIf
class TestUtils(TestCase):