Lines Matching refs:handshake
39 from mod_pywebsocket import handshake
407 handshake._validate_protocol('sample') # should succeed.
408 handshake._validate_protocol('Sample') # should succeed.
409 handshake._validate_protocol('sample\x20protocol') # should succeed.
410 handshake._validate_protocol('sample\x7eprotocol') # should succeed.
411 self.assertRaises(handshake.HandshakeError,
412 handshake._validate_protocol,
414 self.assertRaises(handshake.HandshakeError,
415 handshake._validate_protocol,
417 self.assertRaises(handshake.HandshakeError,
418 handshake._validate_protocol,
420 self.assertRaises(handshake.HandshakeError,
421 handshake._validate_protocol,
427 handshaker = handshake.Handshaker(request,
441 handshaker = handshake.Handshaker(request,
450 handshaker = handshake.Handshaker(request,
460 handshaker = handshake.Handshaker(request,
469 handshaker = handshake.Handshaker(request,
478 handshaker = handshake.Handshaker(request,
488 handshaker = handshake.Handshaker(request,
490 self.assertRaises(handshake.HandshakeError, handshaker.do_handshake)
494 strict_handshaker = handshake.Handshaker(request,
501 strict_handshaker = handshake.Handshaker(request,
504 self.assertRaises(handshake.HandshakeError,