def setUpClass(cls): try: cluster(action="create", config_file=unittest_config_file, no_prompt=True) except: cluster(action="terminate", config_file=unittest_config_file, no_prompt=True) os.remove(unittest_config_file) raise
def tearDownClass(cls): cluster(action="terminate", config_file=unittest_config_file, no_prompt=True) os.remove(unittest_config_file)