diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-02-27 20:40:17 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-02-27 20:40:17 +0100 |
commit | 63fb43369029d33ce77cb2ce1df397e99494562c (patch) | |
tree | a6d36f111e144a5775cd508ddafb7dc2ebe70353 /test/test_odict.py | |
parent | 738a7b34a243944a472e1f6909d515cf5b3b6f71 (diff) | |
download | mitmproxy-63fb43369029d33ce77cb2ce1df397e99494562c.tar.gz mitmproxy-63fb43369029d33ce77cb2ce1df397e99494562c.tar.bz2 mitmproxy-63fb43369029d33ce77cb2ce1df397e99494562c.zip |
fix #53
Diffstat (limited to 'test/test_odict.py')
-rw-r--r-- | test/test_odict.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_odict.py b/test/test_odict.py index a682d7eb..d90bc6e5 100644 --- a/test/test_odict.py +++ b/test/test_odict.py @@ -31,7 +31,9 @@ class TestODict: state = self.od.get_state() nd = odict.ODict.from_state(state) assert nd == self.od - nd.load_state(state) + b = odict.ODict() + b.load_state(state) + assert b == self.od def test_dictToHeader2(self): self.od["one"] = ["uno"] @@ -78,6 +80,7 @@ class TestODict: self.od.add("foo", 2) self.od.add("bar", 3) assert self.od == self.od.copy() + assert not self.od != self.od.copy() def test_del(self): self.od.add("foo", 1) |