From 2d9cba8f4964ae7867cbc81c03d800baa2acacb5 Mon Sep 17 00:00:00 2001 From: Cyril Margorin Date: Tue, 23 Nov 2021 19:32:36 +0300 Subject: [PATCH] Verify that written data has been stored and read back correctly --- tests/test_dispatcher/test_fsm_context.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_dispatcher/test_fsm_context.py b/tests/test_dispatcher/test_fsm_context.py index 0674c9f9..3189e4e6 100644 --- a/tests/test_dispatcher/test_fsm_context.py +++ b/tests/test_dispatcher/test_fsm_context.py @@ -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"