From fa568c2d3bce7639d063e5d94de0aa8b2fcadf0e Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sat, 1 Aug 2015 14:53:20 +0200 Subject: move encoding tests from mitmproxy to netlib --- test/test_encoding.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/test_encoding.py 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") -- cgit v1.2.3