mirror of
https://github.com/espressif/openthread.git
synced 2026-09-08 10:10:06 +00:00
[tests] add ipv6 source selection test (#4380)
This commit is contained in:
@@ -353,6 +353,12 @@ class Message(object):
|
||||
== ipaddress.ip_address(ipv6_address)
|
||||
)
|
||||
|
||||
def assertSentFromSourceAddress(self, ipv6_address):
|
||||
assert (
|
||||
self.ipv6_packet.ipv6_header.source_address
|
||||
== ipaddress.ip_address(ipv6_address)
|
||||
)
|
||||
|
||||
def assertSentWithHopLimit(self, hop_limit):
|
||||
assert self.ipv6_packet.ipv6_header.hop_limit == hop_limit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user