def get_words_by_content(filename):
 f_in = join(TEST_DATA_PATH, filename)
 ext = splitext(f_in)[1]
 with open(f_in, 'r') as infile:
  content = infile.read()
 return get_words(content=content, extension=ext)

def get_words_by_content ( filename ) : f_in = join ( TEST_DATA_PATH , filename ) ext = splitext ( f_in ) [ 1 ] with open ( f_in , 'r' ) as infile : content = infile . read ( ) return get_words ( content = content , extension = ext )
test get_words from content in filename .