diff options
-rw-r--r-- | test/test_odict.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |