def test_choose_port_returns_a_port_number():
 app = OnionShare()
 app.choose_port()
 assert (1024 <= app.port <= 65535)

def test_choose_port_returns_a_port_number ( ) : app = OnionShare ( ) app . choose_port ( ) assert ( 1024 <= app . port <= 65535 )
choose_port() returns a port number .