test/test_config.py
def parser(config_as_string):
    """
    Return config object based on string input
    """
    config_file = tempfile.mktemp()
    with open(config_file, 'w') as file_p:
        file_p.write(config_as_string)
    logging.debug("mock config written to %s", config_file)
    config = server.load_config(config_file)
    os.unlink(config_file)
    return config

    Return config object based on string input
    
Return config object based on string input
Return config object based on string input
def parser(config_as_string):
    config_file = tempfile.mktemp()
    with open(config_file, 'w') as file_p:
        file_p.write(config_as_string)
    logging.debug("mock config written to %s", config_file)
    config = server.load_config(config_file)
    os.unlink(config_file)
    return config
def parser ( config_as_string ) : config_file = tempfile . mktemp ( ) with open ( config_file , 'w' ) as file_p : file_p . write ( config_as_string ) logging . debug ( "mock config written to %s" , config_file ) config = server . load_config ( config_file ) os . unlink ( config_file ) return config
Return config object based on string input
Return config object based on string input
"""
    Return config object based on string input
    """
config_as_string