'Passing a PyCrypto key object to L{keys.Key} is deprecated.'

def test_constructorPyCrypto(self):

    pycryptoKey = Crypto.PublicKey.RSA.construct((keydata.RSAData['n'], keydata.RSAData['e']))
    key = self.callDeprecated((Version('Twisted', 16, 0, 0), 'passing    a    cryptography    key    object'), keys.Key, pycryptoKey)
    self.assertEqual('RSA', key.type())
    self.assertEqual({'n': keydata.RSAData['n'], 'e': keydata.RSAData['e']}, key.data())
