def test_is_match_with_empty_message(self): exp = ExpectHandshake(ContentType.handshake, HandshakeType.client_hello) ret = exp.is_match(Message(ContentType.handshake, bytearray(0))) self.assertFalse(ret)
def test_process(self): exp = ExpectHandshake(ContentType.handshake, HandshakeType.client_hello) with self.assertRaises(NotImplementedError): exp.process(None, None)