#NEWLINE# def test_write( self ) : #NEWLINE# #INDENT# queue = image_transfer . BlockingQueue ( 10 , 30 ) #NEWLINE# queue . put = mock . Mock ( ) #NEWLINE# write_count = 10 #NEWLINE# for _ in range ( 0 , write_count ) : #NEWLINE# #INDENT# queue . write ( [ 1 ] ) #NEWLINE# #UNINDENT# exp_calls = ( [ mock . call ( [ 1 ] ) ] * write_count ) #NEWLINE# self . assertEqual ( exp_calls , queue . put . call_args_list )