Commit cfe14f24 authored by Scott Kuhl's avatar Scott Kuhl

fix flake8 issues in updated tests

parent cb53d8a1
...@@ -47,7 +47,8 @@ def test_parse_subnetport_ip4_with_mask(): ...@@ -47,7 +47,8 @@ def test_parse_subnetport_ip4_with_mask():
== [(socket.AF_INET, '0.0.0.0', 0, 0, 0)] == [(socket.AF_INET, '0.0.0.0', 0, 0, 0)]
with pytest.raises(Fatal) as excinfo: with pytest.raises(Fatal) as excinfo:
sshuttle.options.parse_subnetport('10.0.0.0/33') sshuttle.options.parse_subnetport('10.0.0.0/33')
assert str(excinfo.value) == 'Slash in CIDR notation (/33) is not between 0 and 32' assert str(excinfo.value) \
== 'Slash in CIDR notation (/33) is not between 0 and 32'
def test_parse_subnetport_ip4_with_port(): def test_parse_subnetport_ip4_with_port():
...@@ -82,7 +83,8 @@ def test_parse_subnetport_ip6_with_mask(): ...@@ -82,7 +83,8 @@ def test_parse_subnetport_ip6_with_mask():
== [(socket.AF_INET6, '::', 0, 0, 0)] == [(socket.AF_INET6, '::', 0, 0, 0)]
with pytest.raises(Fatal) as excinfo: with pytest.raises(Fatal) as excinfo:
sshuttle.options.parse_subnetport('fc00::/129') sshuttle.options.parse_subnetport('fc00::/129')
assert str(excinfo.value) == 'Slash in CIDR notation (/129) is not between 0 and 128' assert str(excinfo.value) \
== 'Slash in CIDR notation (/129) is not between 0 and 128'
def test_parse_subnetport_ip6_with_port(): def test_parse_subnetport_ip6_with_port():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment