Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/jupyter_client/tests/test_ssh.py

9 lines
245 B
Python
Raw Normal View History

2020-11-12 16:05:57 +00:00
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