mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 02:17:47 +00:00
[style] apply google python style guide (#4501)
This commit applies and enforces Google's python style for tests.
This commit is contained in:
@@ -42,6 +42,7 @@ MED1_TIMEOUT = 3
|
||||
|
||||
|
||||
class Cert_5_3_3_AddressQuery(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.simulator = config.create_default_simulator()
|
||||
|
||||
@@ -112,8 +113,7 @@ class Cert_5_3_3_AddressQuery(unittest.TestCase):
|
||||
dut_messages = self.simulator.get_messages_sent_by(DUT_ROUTER2)
|
||||
|
||||
router3_mleid = self.nodes[ROUTER3].get_ip6_address(
|
||||
config.ADDRESS_TYPE.ML_EID
|
||||
)
|
||||
config.ADDRESS_TYPE.ML_EID)
|
||||
self.assertTrue(self.nodes[MED1].ping(router3_mleid))
|
||||
|
||||
# Verify DUT_ROUTER2 sent an Address Query Request to the Realm local
|
||||
@@ -136,16 +136,14 @@ class Cert_5_3_3_AddressQuery(unittest.TestCase):
|
||||
dut_messages = self.simulator.get_messages_sent_by(DUT_ROUTER2)
|
||||
|
||||
med1_mleid = self.nodes[MED1].get_ip6_address(
|
||||
config.ADDRESS_TYPE.ML_EID
|
||||
)
|
||||
config.ADDRESS_TYPE.ML_EID)
|
||||
self.assertTrue(self.nodes[ROUTER1].ping(med1_mleid))
|
||||
|
||||
# Verify DUT_ROUTER2 responded with an Address Notification.
|
||||
dut_messages = self.simulator.get_messages_sent_by(DUT_ROUTER2)
|
||||
msg = dut_messages.next_coap_message('0.02', '/a/an')
|
||||
command.check_address_notification(
|
||||
msg, self.nodes[DUT_ROUTER2], self.nodes[ROUTER1]
|
||||
)
|
||||
command.check_address_notification(msg, self.nodes[DUT_ROUTER2],
|
||||
self.nodes[ROUTER1])
|
||||
|
||||
# 4
|
||||
# Wait the finish of address resolution traffic triggerred by previous
|
||||
|
||||
Reference in New Issue
Block a user