#NEWLINE# def test_notifyRemote_connection_failure( self ) : #NEWLINE# #INDENT# "\n        Connection failures get propagated as an errback on notifyRemote's\n        Deferred.\n        " #NEWLINE# self . assertFalse ( d . endpoint . connected ) #NEWLINE# self . endpoint . fail = True #NEWLINE# d = self . factory . notifyRemote ( 'spam' ) #NEWLINE# self . assertEqual ( len ( self . flushLoggedErrors ( FakeError ) ) , 1 ) #NEWLINE# self . failureResultOf ( d , FakeError )