aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 14:53:20 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-01 14:53:20 +0200
commitfa568c2d3bce7639d063e5d94de0aa8b2fcadf0e (patch)
treeeb7d93d7b1474a6bc4b49548d1895bd431f1e512
parentb732a1cb3d1a31e0827de60092badfe162e920a3 (diff)
downloadmitmproxy-fa568c2d3bce7639d063e5d94de0aa8b2fcadf0e.tar.gz
mitmproxy-fa568c2d3bce7639d063e5d94de0aa8b2fcadf0e.tar.bz2
mitmproxy-fa568c2d3bce7639d063e5d94de0aa8b2fcadf0e.zip
move encoding tests from mitmproxy to netlib
-rw-r--r--test/test_encoding.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/test_encoding.py b/test/test_encoding.py
deleted file mode 100644
index e13f5dce..00000000
--- a/test/test_encoding.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from libmproxy import encoding
-
-
-def test_identity():
- assert "string" == encoding.decode("identity", "string")
- assert "string" == encoding.encode("identity", "string")
- assert not encoding.encode("nonexistent", "string")
- assert None == encoding.decode("nonexistent encoding", "string")
-
-
-def test_gzip():
- assert "string" == encoding.decode(
- "gzip",
- encoding.encode(
- "gzip",
- "string"))
- assert None == encoding.decode("gzip", "bogus")
-
-
-def test_deflate():
- assert "string" == encoding.decode(
- "deflate",
- encoding.encode(
- "deflate",
- "string"))
- assert "string" == encoding.decode(
- "deflate",
- encoding.encode(
- "deflate",
- "string")[
- 2:-
- 4])
- assert None == encoding.decode("deflate", "bogus")