first comit
This commit is contained in:
9
venv/lib/python3.10/site-packages/zmq/tests/test_ssh.py
Normal file
9
venv/lib/python3.10/site-packages/zmq/tests/test_ssh.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from zmq.ssh.tunnel import select_random_ports
|
||||
|
||||
|
||||
def test_random_ports():
|
||||
for i in range(4096):
|
||||
ports = select_random_ports(10)
|
||||
assert len(ports) == 10
|
||||
for p in ports:
|
||||
assert ports.count(p) == 1
|
||||
Reference in New Issue
Block a user