'The PyCrypto key instance for an RSA private key has the same
components as the internal key.'

def test_keyObjectGetRSAPrivate(self):

    key = keys.Key.fromString(keydata.privateRSA_openssh)
    result = key.keyObject
    self.assertIsInstance(result, Crypto.PublicKey.RSA._RSAobj)
    self.assertEqual(keydata.RSAData['e'], result.key.e)
    self.assertEqual(keydata.RSAData['n'], result.key.n)
    self.assertEqual(keydata.RSAData['d'], result.key.d)
    self.assertEqual(keydata.RSAData['p'], result.key.p)
    self.assertEqual(keydata.RSAData['q'], result.key.q)
    self.assertEqual(keydata.RSAData['u'], result.key.u)
