You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
245 B
9 lines
245 B
4 years ago
|
from jupyter_client.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
|