def test_create_sub_folder(self): temp_folder = self.get_tmp_folder() test_folder = temp_folder + os.sep + "prgytest" self.ensure_folder_does_not_exist(test_folder) AdminTool.create_sub_folder(temp_folder, "prgytest") self.assertTrue(os.path.exists(test_folder)) self.ensure_folder_does_not_exist(test_folder)
def test_create_initial_properties(self): temp_folder = self.get_tmp_folder() AdminTool.create_sub_folder(temp_folder, "config") props_file = temp_folder + os.sep + "config" + os.sep + "properties.txt" self.ensure_file_does_not_exist(props_file) AdminTool.create_initial_properties(temp_folder) self.assertTrue(os.path.exists(props_file)) self.ensure_file_does_not_exist(props_file)