[tests] add traffic analysis for Cert_5_2_05_AddressQuery.py (#2173)

Add a fuction in node.py node_cli.py to node's address.
Add a module command to verify commands.
Spinel-cli.py doesn't request address for dhcp prefix now, so put
Cert_5_2_05_AddressQuery.py in XFAIL on ncp.
This commit is contained in:
hjian2017
2017-09-13 01:44:56 -07:00
committed by Jonathan Hui
parent 79f8a5a82b
commit d6a3519036
6 changed files with 191 additions and 75 deletions
+5 -1
View File
@@ -35,6 +35,7 @@ if sys.platform != 'win32':
else:
import node_api
import unittest
import config
class Node:
def __init__(self, nodeid, is_mtd=False):
@@ -142,7 +143,7 @@ class Node:
def get_panid(self):
return self.interface.get_panid()
def set_panid(self, panid):
def set_panid(self, panid = config.PANID):
self.interface.set_panid(panid)
def get_partition_id(self):
@@ -187,6 +188,9 @@ class Node:
def get_addrs(self):
return self.interface.get_addrs()
def get_ip6_address(self, address_type):
return self.interface.get_ip6_address(address_type)
def get_context_reuse_delay(self):
return self.interface.get_context_reuse_delay()