diff options
Diffstat (limited to 'rtemsspec/tests/test_items_itemcache.py')
-rw-r--r-- | rtemsspec/tests/test_items_itemcache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_items_itemcache.py b/rtemsspec/tests/test_items_itemcache.py index b1aba815..483c8d43 100644 --- a/rtemsspec/tests/test_items_itemcache.py +++ b/rtemsspec/tests/test_items_itemcache.py @@ -161,6 +161,9 @@ def test_item_mapper(tmpdir): match = r"substitution for spec:/p using prefix 'blub' failed for text: \${}" with pytest.raises(ValueError, match=match): mapper.substitute("${}", item, "blub") + match = r"item 'boom' relative to spec:/p specified by 'boom:bam' does not exist" + with pytest.raises(ValueError, match=match): + mapper.map("boom:bam", item, "blub") def test_empty_item_mapper(): |