userver: /data/code/userver/libraries/easy/samples/2_key_value/testsuite/test_basic.py Source File
Loading...
Searching...
No Matches
test_basic.py
1async def test_kv(service_client):
2 response = await service_client.post('/kv?key=1&value=one')
3 assert response.status == 200
4
5 response = await service_client.get('/kv?key=1')
6 assert response.status == 200
7 assert response.text == 'one'
8
9 response = await service_client.post('/kv?key=1&value=again_1')
10 assert response.status == 200
11
12 response = await service_client.get('/kv?key=1')
13 assert response.status == 200
14 assert response.text == 'again_1'