mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 08:25:15 -04:00
pep8: fix empty line counts
top level: 2, else 1 I also advice to not put "pass" into empty classes, but rather a docstring instead of "pass".
This commit is contained in:
parent
5deb3f9e0f
commit
179eefae29
16 changed files with 74 additions and 15 deletions
|
@ -20,12 +20,14 @@ import socket
|
|||
from onionshare import OnionShare
|
||||
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():
|
||||
"""choose_port() returns an open port"""
|
||||
app = OnionShare()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue