Updated integration.modules.pw_user test suite to use salttesting.helpers.ensure_in_syspath()

This commit is contained in:
Pedro Algarvio 2013-06-27 12:38:23 +01:00
parent 501cb0da31
commit a3fbe47c9f

View File

@ -3,24 +3,13 @@ import os
import string
import random
# 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 skipIf
from salttesting.helpers import destructiveTest
from salttesting.helpers import destructiveTest, ensure_in_syspath
ensure_in_syspath('../../')
# Import salt libs
import integration
class UseraddModuleTest(integration.ModuleCase):