summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_collections.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_collections.py b/tests/test_collections.py
index 5007948..6451f37 100644
--- a/tests/test_collections.py
+++ b/tests/test_collections.py
@@ -35,3 +35,7 @@ def test_insensitive_dict():
assert 'AbAbA' in d
del d['abaBA']
assert ('ababa' in d) is False
+ d.setdefault('D', 'test')
+ assert d['d'] == 'test'
+ d.setdefault('A', 'foo')
+ assert d['a'] == 1