Test fix: OnionShare object doesn't have a port until we tell it to get one.

This commit is contained in:
Mason Donahue 2014-08-31 15:06:12 -05:00
parent ad2c776a5f
commit 15a917c60e

View File

@ -5,6 +5,7 @@ from nose import with_setup
def test_choose_port_returns_a_port_number():
"choose_port() returns a port number"
app = OnionShare()
app.choose_port()
assert 1024 <= app.port <= 65535
def test_choose_port_returns_an_open_port():