#NEWLINE# def test_deferredResult( self ) : #NEWLINE# #INDENT# '\n        L{threads.deferToThreadPool} executes the function passed, and\n        correctly handles the positional and keyword arguments given.\n        ' #NEWLINE# d = threads . deferToThreadPool ( reactor , self . tp , ( lambda x , y = 5 : ( x + y ) ) , 3 , y = 4 ) #NEWLINE# d . addCallback ( self . assertEqual , 7 ) #NEWLINE# return d