def setup_package(): # Don't run these tests if we can not access privileged OS part. if not ChevahTestCase.haveSuperPowers(): raise ChevahTestCase.skipTest() # Initialize the testing OS. try: setup_os(users=TEST_USERS, groups=TEST_GROUPS) except: import traceback print traceback.format_exc() print "Failed to initilized the system accounts!" teardown_os(users=TEST_USERS, groups=TEST_GROUPS) raise
def teardown_package(): teardown_os(users=TEST_USERS, groups=TEST_GROUPS)