mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 14:48:22 +00:00
Merge pull request #40 from p-l-/fix-tests
Tests: fix (black) Python code
This commit is contained in:
commit
b1c49a977a
1 changed files with 4 additions and 4 deletions
|
@ -902,9 +902,9 @@ def test_ipv4_udp_stun_change_port():
|
|||
assert UDP in resp, "no UDP layer found"
|
||||
udp = resp[UDP]
|
||||
assert (
|
||||
udp.sport == (dport + 1) % 2 ** 16
|
||||
udp.sport == (dport + 1) % 2**16
|
||||
), "expected answer from UDP/{}, got it from UDP/{}".format(
|
||||
(dport + 1) % 2 ** 16, udp.sport
|
||||
(dport + 1) % 2**16, udp.sport
|
||||
)
|
||||
assert (
|
||||
udp.dport == sport
|
||||
|
@ -945,9 +945,9 @@ def test_ipv6_udp_stun_change_port():
|
|||
assert UDP in resp, "expecting UDP layer in answer, got nothing"
|
||||
udp = resp[UDP]
|
||||
assert (
|
||||
udp.sport == (dport + 1) % 2 ** 16
|
||||
udp.sport == (dport + 1) % 2**16
|
||||
), "expected answer from UDP/{}, got it from UDP/{}".format(
|
||||
(dport + 1) % 2 ** 16, udp.sport
|
||||
(dport + 1) % 2**16, udp.sport
|
||||
)
|
||||
assert (
|
||||
udp.dport == sport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue