#NEWLINE# def test_convert_timestamps( ) : #NEWLINE# #INDENT# filename = os . path . join ( os . path . dirname ( __file__ ) , 'data/test.mp3' ) #NEWLINE# sentences = audiogrep . convert_timestamps ( [ sentence ] ) #NEWLINE# words = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for sentence in sentences : #NEWLINE# #INDENT# for word in sentence [ 'words' ] : #NEWLINE# #INDENT# words [ word [ 0 ] ] = True #NEWLINE# #UNINDENT# #UNINDENT# assert ( 'fashion' in words ) #NEWLINE# assert ( len ( sentences ) == 9 )