aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_odict.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-28 12:12:37 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-28 12:12:37 +1200
commit41af65a1c478825d4df6239b33fbcb971dcf1df8 (patch)
tree9830657189938900adad330beba0478f0d0761c2 /test/test_odict.py
parent5265b289575d3935e8af29b5c27c963832efc8ad (diff)
parent80378306960379f12aca72309dc47437cd1a825c (diff)
downloadmitmproxy-41af65a1c478825d4df6239b33fbcb971dcf1df8.tar.gz
mitmproxy-41af65a1c478825d4df6239b33fbcb971dcf1df8.tar.bz2
mitmproxy-41af65a1c478825d4df6239b33fbcb971dcf1df8.zip
Merge branch 'Kriechi-cleanup'
Diffstat (limited to 'test/test_odict.py')
-rw-r--r--test/test_odict.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_odict.py b/test/test_odict.py
index c01c4dbe..d66ae59b 100644
--- a/test/test_odict.py
+++ b/test/test_odict.py
@@ -3,6 +3,7 @@ import tutils
class TestODict:
+
def setUp(self):
self.od = odict.ODict()
@@ -106,13 +107,13 @@ class TestODict:
def test_get(self):
self.od.add("one", "two")
assert self.od.get("one") == ["two"]
- assert self.od.get("two") == None
+ assert self.od.get("two") is None
def test_get_first(self):
self.od.add("one", "two")
self.od.add("one", "three")
assert self.od.get_first("one") == "two"
- assert self.od.get_first("two") == None
+ assert self.od.get_first("two") is None
def test_extend(self):
a = odict.ODict([["a", "b"], ["c", "d"]])
@@ -121,7 +122,9 @@ class TestODict:
assert len(a) == 4
assert a["a"] == ["b", "b"]
+
class TestODictCaseless:
+
def setUp(self):
self.od = odict.ODictCaseless()