1async def test_kv(service_client):
2 response = await service_client.post(
'/kv?key=1&value=one')
3 assert response.status == 200
5 response = await service_client.get(
'/kv?key=1')
6 assert response.status == 200
7 assert response.text ==
'one'
9 response = await service_client.post(
'/kv?key=1&value=again_1')
10 assert response.status == 200
12 response = await service_client.get(
'/kv?key=1')
13 assert response.status == 200
14 assert response.text ==
'again_1'