MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_storage_keys_values_items

Function test_storage_keys_values_items

core/tests/python/tests/test_storage.py:108–118  ·  view source on GitHub ↗

The keys, values, and items methods should work like dict.

()

Source from the content-addressed store, hash-verified

106
107
108async def test_storage_keys_values_items():
109 """
110 The keys, values, and items methods should work like dict.
111 """
112 test_store["a"] = 1
113 test_store["b"] = 2
114 test_store["c"] = 3
115
116 assert set(test_store.keys()) == {"a", "b", "c"}
117 assert set(test_store.values()) == {1, 2, 3}
118 assert set(test_store.items()) == {("a", 1), ("b", 2), ("c", 3)}
119
120
121async def test_storage_update():

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected