def getPublicKeys(self):
        """
        We used to map key types to public key blobs as strings.
        """
        keys = MockFactory.getPublicKeys(self)
        for name, key in keys.items()[:]:
            keys[name] = key.blob()
        return keys

        We used to map key types to public key blobs as strings.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_transport.py