def test_errConnectionLost(self):
        """
        Make sure reverse ordering of events in test_outConnectionLost also
        sends EOF.
        """
        self.pp.errConnectionLost()
        self.assertFalse(self.session in self.session.conn.eofs)
        self.pp.outConnectionLost()
        self.assertTrue(self.session.conn.eofs[self.session])

        Make sure reverse ordering of events in test_outConnectionLost also
        sends EOF.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_session.py