The keys, values, and items methods should work like dict.
()
| 106 | |
| 107 | |
| 108 | async 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 | |
| 121 | async def test_storage_update(): |