summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2022-06-27 00:34:37 +0000
committerMatthew Peveler <matt.peveler@gmail.com>2022-06-27 00:34:37 +0000
commit5820bc70c0166fa191b1c85f4cd8a3e18fa013f5 (patch)
tree189d91af7bf91c587948fe620207bf54ce6e7c1a
parente87603df33e7f773c93c1f8c6ce675cdd376d82e (diff)
downloadasciidoc-py3-5820bc70c0166fa191b1c85f4cd8a3e18fa013f5.tar.gz
add tests for InsensitiveDict.setdefault
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-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