aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-03-24 14:02:41 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-03-24 14:20:24 +1300
commit62e51018d0b7041d49e42b8e7d9b602ece356456 (patch)
tree59d798308ed40a20ac9489c35514a4298d61406f /test/test_flow.py
parent0d05068f911adf619522b67c49c7a1fe24ecf70c (diff)
downloadmitmproxy-62e51018d0b7041d49e42b8e7d9b602ece356456.tar.gz
mitmproxy-62e51018d0b7041d49e42b8e7d9b602ece356456.tar.bz2
mitmproxy-62e51018d0b7041d49e42b8e7d9b602ece356456.zip
Refactor pretty view mechanism.
Also start adding unit tests for this subsystem.
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 8a7da05c..e44e2b0d 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -1001,6 +1001,11 @@ class uODict(libpry.AutoTree):
["two", "vun"],
]
+ def test_get(self):
+ self.od.add("one", "two")
+ assert self.od.get("one") == ["two"]
+ assert self.od.get("two") == None
+
class uODictCaseless(libpry.AutoTree):
def setUp(self):