#NEWLINE# def test_checksum_persistence( self ) : #NEWLINE# #INDENT# 'Make sure checksums are shared between threads.' #NEWLINE# checksum = '397fc6229a59429ee114441b780fe7a2' #NEWLINE# state_handler . set_checksum ( 0 , checksum ) #NEWLINE# getter = ChecksumGetter ( 0 ) #NEWLINE# getter . start ( ) #NEWLINE# getter . join ( ) #NEWLINE# self . assertEqual ( checksum . checksum , checksum ) #NEWLINE# state_handler . clear_checksum ( 0 ) #NEWLINE# getter = ChecksumGetter ( 0 ) #NEWLINE# getter . start ( ) #NEWLINE# getter . join ( ) #NEWLINE# self . assertIsNone ( getter . checksum )