The clear method should remove all items from the storage object.
()
| 84 | |
| 85 | |
| 86 | async def test_storage_clear(): |
| 87 | """ |
| 88 | The clear method should remove all items from the storage object. |
| 89 | """ |
| 90 | test_store["a"] = 1 |
| 91 | test_store["b"] = 2 |
| 92 | assert len(test_store) == 2 |
| 93 | test_store.clear() |
| 94 | assert len(test_store) == 0 |
| 95 | |
| 96 | |
| 97 | async def test_storage_get_method(): |