Lines Matching refs:coap_message
308 coap_message = coap.CoapMessage(
319 actual_version = coap_message.version
328 coap_message = coap.CoapMessage(
339 actual_type = coap_message.type
348 coap_message = coap.CoapMessage(
359 actual_code = coap_message.code
368 coap_message = coap.CoapMessage(
379 actual_message_id = coap_message.message_id
388 coap_message = coap.CoapMessage(
399 actual_token = coap_message.token
408 coap_message = coap.CoapMessage(
419 actual_tkl = coap_message.tkl
428 coap_message = coap.CoapMessage(
439 actual_options = coap_message.options
448 coap_message = coap.CoapMessage(
459 actual_payload = coap_message.payload
468 coap_message = coap.CoapMessage(
480 actual_uri_path = coap_message.uri_path
565 coap_message = factory.parse(io.BytesIO(data), None)
568 self.assertEqual(1, coap_message.version)
569 self.assertEqual(0, coap_message.type)
570 self.assertEqual(2, coap_message.tkl)
571 self.assertEqual(2, coap_message.code)
572 self.assertEqual(189, coap_message.message_id)
573 self.assertEqual(bytearray([0x65, 0xee]), coap_message.token)
574 self.assertEqual("a", coap_message.options[0].value.decode("utf-8"))
575 self.assertEqual("as", coap_message.options[1].value.decode("utf-8"))
576 self.assertEqual("/a/as", coap_message.uri_path)
593 coap_message.payload,
636 coap_message = factory.parse(io.BytesIO(data), None)
639 self.assertEqual(1, coap_message.version)
640 self.assertEqual(2, coap_message.type)
641 self.assertEqual(2, coap_message.tkl)
642 self.assertEqual("2.04", coap_message.code)
643 self.assertEqual(189, coap_message.message_id)
644 self.assertEqual(bytearray([0x65, 0xee]), coap_message.token)
645 self.assertEqual(None, coap_message.uri_path)
667 coap_message.payload,