'When the client and server have no overlap of protocols, the connection
fails.'

def test_NPNAndALPNNoOverlap(self):

    clientProtocols = ['h2', 'http/1.1']
    serverProtocols = ['spdy/3']
    (negotiatedProtocol, lostReason) = negotiateProtocol(serverProtocols=clientProtocols, clientProtocols=serverProtocols)
    self.assertIsNone(negotiatedProtocol)
    self.assertEqual(lostReason.type, SSL.Error)
