def test_create_config_file_unknown(self): temp_folder = self.get_tmp_folder() config_file = temp_folder + os.sep + "config.yaml" self.ensure_file_does_not_exist(config_file) with self.assertRaises(Exception): AdminTool.create_config_file(temp_folder, "unknown") self.ensure_file_does_not_exist(config_file)
def test_create_config_file_socket(self): temp_folder = self.get_tmp_folder() config_file = temp_folder + os.sep + "config.yaml" self.ensure_file_does_not_exist(config_file) AdminTool.create_config_file(temp_folder, "socket") self.assertTrue(os.path.exists(config_file)) self.ensure_file_does_not_exist(config_file)