summaryrefslogtreecommitdiffstats
path: root/rtemsspec/tests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-24 12:07:49 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-24 12:07:49 +0200
commit9b358dba651141037fc044d3b9d6ac538b24f9be (patch)
treec1b7357badfacc1928b862cf561a3171238fa0d2 /rtemsspec/tests
parentspecverify: Add SpecVerify.verify() (diff)
downloadrtems-central-9b358dba651141037fc044d3b9d6ac538b24f9be.tar.bz2
items: Add Item.cache
Diffstat (limited to 'rtemsspec/tests')
-rw-r--r--rtemsspec/tests/test_items_item.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_items_item.py b/rtemsspec/tests/test_items_item.py
index bb9b085d..e84ce276 100644
--- a/rtemsspec/tests/test_items_item.py
+++ b/rtemsspec/tests/test_items_item.py
@@ -85,6 +85,12 @@ def test_data():
assert item.data == {"x": "y"}
+def test_cache():
+ item_cache = EmptyItemCache()
+ item = Item(item_cache, "i", {})
+ assert item.cache == item_cache
+
+
def test_get_key_path():
data = {}
data["a"] = {"b": "c", "d": [1, 2, 3]}