#NEWLINE# def test_deferred_success_result( self ) : #NEWLINE# #INDENT# '\n        If the underlying function returns a Deferred, the wrapper returns a\n        EventualResult hooked up to the Deferred.\n        ' #NEWLINE# passthrough = self . make_wrapped_function ( ) #NEWLINE# result = passthrough ( succeed ( 123 ) ) #NEWLINE# self . assertIsInstance ( result , EventualResult ) #NEWLINE# self . assertEqual ( result . wait ( ) , 123 )