'A L{STREAM_END_EVENT} results in L{StreamManager} firing the handlers
L{connectionLost} methods, passing a L{failure.Failure} reason.'

def test_disconnectedReason(self):

    sm = self.streamManager
    handler = FailureReasonXMPPHandler()
    handler.setHandlerParent(sm)
    sm._disconnected(failure.Failure(Exception('no    reason')))
    self.assertEqual(True, handler.gotFailureReason)
