From 63fb43369029d33ce77cb2ce1df397e99494562c Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 27 Feb 2015 20:40:17 +0100 Subject: fix #53 --- test/test_odict.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') 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) -- cgit v1.2.3