def test_signAndVerifyRSA(self):
        """
        Signed data can be verified using RSA.
        """
        data = b'some-data'
        key = keys.Key.fromString(keydata.privateRSA_openssh)
        signature = key.sign(data)
        self.assertTrue(key.public().verify(signature, data))
        self.assertTrue(key.verify(signature, data))

        Signed data can be verified using RSA.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_keys.py