aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_encoding.py1
-rw-r--r--test/test_socks.py6
-rw-r--r--test/test_utils.py6
3 files changed, 6 insertions, 7 deletions
diff --git a/test/test_encoding.py b/test/test_encoding.py
index faf718ae..612aea89 100644
--- a/test/test_encoding.py
+++ b/test/test_encoding.py
@@ -1,5 +1,6 @@
from netlib import encoding
+
def test_identity():
assert "string" == encoding.decode("identity", "string")
assert "string" == encoding.encode("identity", "string")
diff --git a/test/test_socks.py b/test/test_socks.py
index 36fc5b3d..3d109f42 100644
--- a/test/test_socks.py
+++ b/test/test_socks.py
@@ -44,7 +44,11 @@ def test_client_greeting_assert_socks5():
assert False
raw = tutils.treader("XX")
- tutils.raises(socks.SocksError, socks.ClientGreeting.from_file, raw, fail_early=True)
+ tutils.raises(
+ socks.SocksError,
+ socks.ClientGreeting.from_file,
+ raw,
+ fail_early=True)
def test_server_greeting():
diff --git a/test/test_utils.py b/test/test_utils.py
index 27fc5cc5..89ce0f17 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -29,8 +29,6 @@ def test_pretty_size():
assert utils.pretty_size(1024 * 1024) == "1MB"
-
-
def test_parse_url():
assert not utils.parse_url("")
@@ -85,7 +83,6 @@ def test_urlencode():
assert utils.urlencode([('foo', 'bar')])
-
def test_urldecode():
s = "one=two&three=four"
assert len(utils.urldecode(s)) == 2
@@ -102,9 +99,6 @@ def test_get_header_tokens():
assert utils.get_header_tokens(h, "foo") == ["bar", "voing", "oink"]
-
-
-
def test_multipartdecode():
boundary = 'somefancyboundary'
headers = odict.ODict(