def test_disconnectIfCantMatchKeyAlg(self):
        """
        Like test_disconnectIfCantMatchKex, but for the key algorithm.
        """
        def blankPublicKeys(proto2):
            proto2.supportedPublicKeys = []
        self.connectModifiedProtocol(blankPublicKeys)

        Like test_disconnectIfCantMatchKex, but for the key algorithm.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_transport.py