[test] Add traffic analysis for Cert_6_1_01_RouterAttach (#2119)

Also fix the method assertMleMessageContainsOptionalTlv() in message.py to
output appropriate log.
This commit is contained in:
hjian2017
2017-08-22 18:35:10 -07:00
committed by Jonathan Hui
parent cfb8766928
commit 97a2fc4cc3
2 changed files with 61 additions and 2 deletions
+4 -1
View File
@@ -189,7 +189,10 @@ class Message(object):
contains_tlv = True
break
print("MleMessage doesn't contain optional TLV: {}".format(tlv_class_type))
if contains_tlv == True:
print("MleMessage contains optional TLV: {}".format(tlv_class_type))
else:
print("MleMessage doesn't contain optional TLV: {}".format(tlv_class_type))
def get_coap_message_tlv(self, tlv_class_type):
if self.type != MessageType.COAP: