mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-04-22 10:28:02 +00:00
10 lines
246 B
Python
10 lines
246 B
Python
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
|