def test_clientRekey(self):
        """
        After a client-initiated rekey is completed, application data continues
        to be passed over the SSH connection.
        """
        process = ConchTestOpenSSHProcess()
        d = self.execute("", process, '-o RekeyLimit=2K')
        def finished(result):
            expectedResult = '\n'.join(['line #%02d' % (i,) for i in range(60)]) + '\n'
            expectedResult = expectedResult.encode("utf-8")
            self.assertEqual(result, expectedResult)
        d.addCallback(finished)
        return d

        After a client-initiated rekey is completed, application data continues
        to be passed over the SSH connection.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_conch.py