aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_encoding.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-08-02 20:47:53 +1200
committerAldo Cortesi <aldo@nullcube.com>2011-08-02 20:47:53 +1200
commita817db5bd6b55cfb86de24cf7bc8aa8bb400653d (patch)
tree68b6fe785e84cc0eccd3ba3f61a53f57c2e42262 /test/test_encoding.py
parent8cc0469ee72592d079750a9d5427853d95a7dbfe (diff)
downloadmitmproxy-a817db5bd6b55cfb86de24cf7bc8aa8bb400653d.tar.gz
mitmproxy-a817db5bd6b55cfb86de24cf7bc8aa8bb400653d.tar.bz2
mitmproxy-a817db5bd6b55cfb86de24cf7bc8aa8bb400653d.zip
Refresh current connection when toggling autodecode.
Also fix the unit tests I forgot to commit...
Diffstat (limited to 'test/test_encoding.py')
-rw-r--r--test/test_encoding.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_encoding.py b/test/test_encoding.py
index dff146ee..d9e6a85c 100644
--- a/test/test_encoding.py
+++ b/test/test_encoding.py
@@ -10,8 +10,7 @@ class uidentity(libpry.AutoTree):
assert "string" == encoding.encode("identity", "string")
def test_fallthrough(self):
- assert "string" == encoding.decode("nonexistent encoding", "string")
- assert "string" == encoding.encode("nonexistent encoding", "string")
+ assert None == encoding.decode("nonexistent encoding", "string")
class ugzip(libpry.AutoTree):
def test_simple(self):