#NEWLINE# def test_saver_resets_after_final_hypothesis( self ) : #NEWLINE# #INDENT# self . saver . new_recognition ( createUniqueID ( self . id ) ) #NEWLINE# self . saver . add_pcm ( self . chunk ) #NEWLINE# self . saver . final_hypothesis ( self . chunk_id , self . final_hypothesis ) #NEWLINE# self . saver . new_recognition ( createUniqueID ( ( self . id + 1 ) ) ) #NEWLINE# self . saver . add_pcm ( self . chunk ) #NEWLINE# self . saver . final_hypothesis ( self . chunk_id , self . final_hypothesis ) #NEWLINE# message = parseSaverMessage ( self . socket . sent_message ) #NEWLINE# self . assertEquals ( ( self . id + 1 ) , uniqId2Int ( message . id ) ) #NEWLINE# self . assertEquals ( self . chunk , message . body )