#NEWLINE# def test_get_one_worker( self ) : #NEWLINE# #INDENT# worker = object ( ) #NEWLINE# self . create_worker . return_value = monocle . callback . defer ( worker ) #NEWLINE# results = [ ] #NEWLINE# self . wm . get_worker ( ) . add ( results . append ) #NEWLINE# self . assertEqual ( results , [ worker ] )