mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
tests: Decode upnp_soap_action() response for python3
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
69f58282bc
commit
732b76139a
@ -2885,7 +2885,7 @@ def test_ap_wps_upnp(dev, apdev):
|
|||||||
resp = upnp_soap_action(conn, ctrlurl.path, "GetDeviceInfo")
|
resp = upnp_soap_action(conn, ctrlurl.path, "GetDeviceInfo")
|
||||||
if resp.status != 200:
|
if resp.status != 200:
|
||||||
raise Exception("Unexpected HTTP response: %d" % resp.status)
|
raise Exception("Unexpected HTTP response: %d" % resp.status)
|
||||||
dev = resp.read()
|
dev = resp.read().decode()
|
||||||
if "NewDeviceInfo" not in dev:
|
if "NewDeviceInfo" not in dev:
|
||||||
raise Exception("Unexpected GetDeviceInfo response")
|
raise Exception("Unexpected GetDeviceInfo response")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user