aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_utils.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-05-31 19:32:08 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-05-31 19:32:08 +1200
commitb2f63458fcda7878d5cf674c2f1e9ca7db5bf3ce (patch)
tree639b7e8408a52dc8828f579f324dab065e4b4cb2 /test/pathod/test_utils.py
parentec34cae6181d6af0150ac730d70b96104a07e9d5 (diff)
downloadmitmproxy-b2f63458fcda7878d5cf674c2f1e9ca7db5bf3ce.tar.gz
mitmproxy-b2f63458fcda7878d5cf674c2f1e9ca7db5bf3ce.tar.bz2
mitmproxy-b2f63458fcda7878d5cf674c2f1e9ca7db5bf3ce.zip
Move human-friendly format functions to netlib.human, remove redundant implementations
Diffstat (limited to 'test/pathod/test_utils.py')
-rw-r--r--test/pathod/test_utils.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py
index 8026a576..ab4abbae 100644
--- a/test/pathod/test_utils.py
+++ b/test/pathod/test_utils.py
@@ -13,13 +13,6 @@ def test_membool():
assert m.v == 2
-def test_parse_size():
- assert utils.parse_size("100") == 100
- assert utils.parse_size("100k") == 100 * 1024
- tutils.raises("invalid size spec", utils.parse_size, "foo")
- tutils.raises("invalid size spec", utils.parse_size, "100kk")
-
-
def test_parse_anchor_spec():
assert utils.parse_anchor_spec("foo=200") == ("foo", "200")
assert utils.parse_anchor_spec("foo") is None