def test_toLSHRSA(self):
        """
        L{keys.Key.toString} serializes an RSA key in LSH format.
        """
        key = keys.Key.fromString(keydata.privateRSA_openssh)
        self.assertEqual(key.toString('lsh'), keydata.privateRSA_lsh)
        self.assertEqual(key.public().toString('lsh'),
                keydata.publicRSA_lsh)

        L{keys.Key.toString} serializes an RSA key in LSH format.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_keys.py