def getPrivateKeys(self):
        """
        We used to map key types to cryptography key objects.
        """
        keys = MockFactory.getPrivateKeys(self)
        for name, key in keys.items()[:]:
            keys[name] = key.keyObject
        return keys

        We used to map key types to cryptography key objects.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_transport.py