'buildProtocol() calls \'self.protocol()\' to construct a protocol
instance.'

def test_buildProtocolRespectsProtocol(self):

    calls = []
    def makeProtocol(*args):
        calls.append(args)
        return transport.SSHServerTransport()
    factory = self.makeSSHFactory()
    factory.protocol = makeProtocol
    factory.buildProtocol(None)
    self.assertEqual([()], calls)
