[riot-notifications] [RIOT-OS/RIOT] sys/net/dhcpv6: Add IA_NA support to the DHCPv6 client (#16228)
notifications at github.com
Tue Aug 10 22:48:07 CEST 2021
@miri64 commented on this pull request.
+def check_ia_pd_addr(ia_pd_addr, global_pfx):
+ """Check if the expected IA_PD address has been assigned"""
+ return ia_pd_addr.startswith(global_pfx)
+def check_global_addrs(ia_na_addr, ia_pd_addr, global_pfx):
+ """Perform IA_NA check for the first and IA_PD for the second address"""
+ return check_ia_na_addr(ia_na_addr) and check_ia_pd_addr(ia_pd_addr, global_pfx)
+def test_global_addrs(global_addr_1, global_addr_2, global_pfx):
+ """Assert that one global address is the IA_NA and the other one is the IA_PD address"""
+ result_1 = check_global_addrs(global_addr_1, global_addr_2, global_pfx)
+ result_2 = check_global_addrs(global_addr_2, global_addr_1, global_pfx)
+ assert result_1 != result_2
Both `any`s should be true (as both value lists should contain at least one true value), so comparing them does not make sense.
assert result_1 != result_2
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications