def get_mock_hadoop_output():
 output_dir = get_mock_dir('output')
 dirnames = sorted(os.listdir(output_dir))
 if dirnames:
  return os.path.join(output_dir, dirnames[0])
 else:
  return None

def get_mock_hadoop_output ( ) : output_dir = get_mock_dir ( 'output' ) dirnames = sorted ( os . listdir ( output_dir ) ) if dirnames : return os . path . join ( output_dir , dirnames [ 0 ] ) else : return None
get a path to a directory containing part files to use as mock output .