#NEWLINE# def test_input_queue( self ) : #NEWLINE# #INDENT# called = [ ] #NEWLINE# from tinymail.async import start_worker #NEWLINE# class MyWorker ( object ) : #NEWLINE# #INDENT# def plus( self , a , b ) : #NEWLINE# #INDENT# called . append ( ( a , b ) ) #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# worker = start_worker ( MyWorker ( ) ) #NEWLINE# d = worker . plus ( 3 , 4 ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# worker . done ( ) #NEWLINE# #UNINDENT# self . assertEqual ( called , [ ( 3 , 4 ) ] )