'When factories support L{IProtocolNegotiationFactory} and only the
server advertises, nothing is negotiated.'

def test_negotiationServerOnly(self):

    (client, server, clientDataReceived, serverDataReceived) = self.handshakeProtocols([], ['h2', 'http/1.1'])
    def checkNegotiatedProtocol(ignored):
        self.assertEqual(client.negotiatedProtocol, None)
        self.assertEqual(server.negotiatedProtocol, None)
    clientDataReceived.addCallback((lambda ignored: serverDataReceived))
    serverDataReceived.addCallback(checkNegotiatedProtocol)
    return clientDataReceived
