Verify that written data has been stored and read back correctly

This commit is contained in:
Cyril Margorin 2021-11-23 19:32:36 +03:00
parent 19d26597f8
commit 2d9cba8f49

View file

@ -9,3 +9,6 @@ class TestFSMContext:
context = FSMContext(MemoryStorage(), chat=1, user=1)
async with context.proxy() as data:
data.update(key1="value1", key2="value2")
async with context.proxy() as data:
assert data['key1'] == "value1"
assert data['key2'] == "value2"