#NEWLINE# def test_callRemote_cancellation_during_request( self ) : #NEWLINE# #INDENT# '\n        The Deferred returned by callRemote can be cancelled while waiting on a\n        response.\n        ' #NEWLINE# self . assertFalse ( self . endpoint . connected ) #NEWLINE# d = self . factory . callRemote ( 'spam' ) #NEWLINE# d . cancel ( ) #NEWLINE# self . failureResultOf ( d , defer . CancelledError )