parameters: (atom, exec_fn = read_stdout )
return_statement: return len(std_out) >= 1
docstring: Check if a given atom is installed.
      
      :param exec_fn: function to execute Popen and read stdout (for testing)
docstring_summary: Check if a given atom is installed.
      
      :param exec_fn: function to execute Popen and read stdout (for testing)
docstring_tokens: Check if a given atom is installed . : param exec_fn : function to execute Popen and read stdout ( for testing )
function: def portage_detect_single(atom, exec_fn = read_stdout ):
      """ 
      Check if a given atom is installed.
      
      :param exec_fn: function to execute Popen and read stdout (for testing)
      """
  
      std_out = exec_fn(['portageq', 'match', '/', atom])
  
      # TODO consdier checking the name of the package returned
      # Also, todo, figure out if just returning true if two packages are returned is cool..
      return len(std_out) >= 1
function_tokens: def portage_detect_single ( atom , exec_fn = read_stdout ) : std_out = exec_fn ( [ 'portageq' , 'match' , '/' , atom ] ) # TODO consdier checking the name of the package returned # Also, todo, figure out if just returning true if two packages are returned is cool.. return len ( std_out ) >= 1