Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
cfe14f24
Commit
cfe14f24
authored
Oct 17, 2020
by
Scott Kuhl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flake8 issues in updated tests
parent
cb53d8a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test_options.py
tests/client/test_options.py
+4
-2
No files found.
tests/client/test_options.py
View file @
cfe14f24
...
...
@@ -47,7 +47,8 @@ def test_parse_subnetport_ip4_with_mask():
==
[(
socket
.
AF_INET
,
'0.0.0.0'
,
0
,
0
,
0
)]
with
pytest
.
raises
(
Fatal
)
as
excinfo
:
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
():
...
...
@@ -82,7 +83,8 @@ def test_parse_subnetport_ip6_with_mask():
==
[(
socket
.
AF_INET6
,
'::'
,
0
,
0
,
0
)]
with
pytest
.
raises
(
Fatal
)
as
excinfo
:
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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment