(cache)
| 134 | |
| 135 | |
| 136 | def test_list_items(cache): |
| 137 | data = {"key1": "val1", "key2": "val2", "key3": True} |
| 138 | for k, v in data.items(): |
| 139 | if v is True: |
| 140 | cache.put(k) |
| 141 | else: |
| 142 | cache.put(k, v) |
| 143 | |
| 144 | items = cache.list_items() |
| 145 | assert len(items) == 3 |
| 146 | assert set(items) == {("key1", "val1"), ("key2", "val2"), ("key3", True)} |
| 147 | |
| 148 | |
| 149 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected