From a9a4064ff94abdddabc22789a9c32f0cb02c55cb Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 5 Jan 2013 20:08:48 +1300 Subject: Unit test for ODict.__iter__ --- test/test_odict.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_odict.py b/test/test_odict.py index f27f6f8b..d59ed67e 100644 --- a/test/test_odict.py +++ b/test/test_odict.py @@ -58,6 +58,11 @@ class TestODict: assert not self.od.in_any("one", "TWO") assert self.od.in_any("one", "TWO", True) + def test_iter(self): + assert not [i for i in self.od] + self.od.add("foo", 1) + assert [i for i in self.od] + def test_copy(self): self.od.add("foo", 1) self.od.add("foo", 2) -- cgit v1.2.3