def test_buildProtocolRespectsProtocol(self):
        """
        buildProtocol() calls 'self.protocol()' to construct a protocol
        instance.
        """
        calls = []
        def makeProtocol(*args):
            calls.append(args)
            return transport.SSHServerTransport()
        factory = self.makeSSHFactory()
        factory.protocol = makeProtocol
        factory.buildProtocol(None)
        self.assertEqual([()], calls)

        buildProtocol() calls 'self.protocol()' to construct a protocol
        instance.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_ssh.py