#NEWLINE# def test_callRemote_timeout( self ) : #NEWLINE# #INDENT# '\n        A timeout causes the Deferred returned by callRemote to errback with\n        CancelledError.\n        ' #NEWLINE# self . assertFalse ( self . endpoint . connected ) #NEWLINE# d = self . factory . callRemote ( 'spam' ) #NEWLINE# self . reactor . advance ( 10 ) #NEWLINE# self . failureResultOf ( self , defer . CancelledError )