#NEWLINE# def test_request_sequence( self ) : #NEWLINE# #INDENT# self . create_worker . return_value = monocle . callback . defer ( object ( ) ) #NEWLINE# results = [ ] #NEWLINE# self . wm . get_worker ( ) . add ( results . append ) #NEWLINE# worker = results [ 0 ] #NEWLINE# self . wm . hand_back_worker ( worker ) #NEWLINE# worker2 = object ( ) #NEWLINE# self . create_worker . return_value = monocle . callback . defer ( worker2 ) #NEWLINE# results2 = [ ] #NEWLINE# self . wm . get_worker ( ) . add ( results2 . append ) #NEWLINE# self . assertIs ( results2 [ 0 ] , worker2 )