aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-21 11:41:54 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-21 11:42:21 +1300
commitcc8b422d9d4cdf5e6933567ec7be45f59ca95f3a (patch)
treeca47023b85a265c054dac3f082c7214b59a12df3 /test
parent18ee6255c03dafff715650b15ae3cd6ff6152bac (diff)
downloadmitmproxy-cc8b422d9d4cdf5e6933567ec7be45f59ca95f3a.tar.gz
mitmproxy-cc8b422d9d4cdf5e6933567ec7be45f59ca95f3a.tar.bz2
mitmproxy-cc8b422d9d4cdf5e6933567ec7be45f59ca95f3a.zip
multidict: remove to_dict
We never use it, and it is dangerously ambiguous when a key is associated with a list.
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_types_multidict.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/mitmproxy/test_types_multidict.py b/test/mitmproxy/test_types_multidict.py
index cf80c05e..e0bbc9b1 100644
--- a/test/mitmproxy/test_types_multidict.py
+++ b/test/mitmproxy/test_types_multidict.py
@@ -172,13 +172,6 @@ class TestMultiDict:
assert list(md.items()) == [("foo", "bar"), ("bar", "baz")]
assert list(md.items(multi=True)) == [("foo", "bar"), ("bar", "baz"), ("Bar", "bam")]
- def test_to_dict(self):
- md = self._multi()
- assert md.to_dict() == {
- "foo": "bar",
- "bar": ["baz", "bam"]
- }
-
def test_state(self):
md = self._multi()
assert len(md.get_state()) == 3