diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-03-24 14:02:41 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-03-24 14:20:24 +1300 |
commit | 62e51018d0b7041d49e42b8e7d9b602ece356456 (patch) | |
tree | 59d798308ed40a20ac9489c35514a4298d61406f /test/test_flow.py | |
parent | 0d05068f911adf619522b67c49c7a1fe24ecf70c (diff) | |
download | mitmproxy-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.py | 5 |
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): |