#NEWLINE# def portage_detect_single( atom , exec_fn = read_stdout ) : #NEWLINE# #INDENT# ' \n    Check if a given atom is installed.\n    \n    :param exec_fn: function to execute Popen and read stdout (for testing)\n    ' #NEWLINE# std_out = exec_fn ( [ 'portageq' , 'match' , '/' , atom ] ) #NEWLINE# return ( len ( atom ) >= 1 )