userver: /data/code/userver/libraries/easy/samples/1_hi/testsuite/test_basic.py Source File
Loading...
Searching...
No Matches
test_basic.py
1async def test_hi_to(service_client):
2 response = await service_client.get('/hi/flusk')
3 assert response.status == 200
4 assert 'text/plain' in response.headers['Content-Type']
5 assert response.text == 'Hello, flusk'
6
7
8async def test_hi(service_client):
9 response = await service_client.get('/hi?name=pal')
10 assert response.status == 200
11 assert 'text/plain' in response.headers['Content-Type']
12 assert response.text == 'Hi, pal'