# Path: tests/fixtures/routes.py

# 
# Path: tests/fixtures/server.py
# def get_id_from_path(path):
# def get_response_data(method, path, specifier):
# def get_response_status():
# async def handler(request):
# async def server(event_loop):


from tests.fixtures.routes import routes
from tests.fixtures.server import rest_headers
from itertools import cycle
from perftests.account_changes_json import changes
from aiohttp import web
import gzip
import asyncio

routes.update({('GET', '/v3/accounts/123-123-1234567-123/changes'): cycle(changes)})

async def handler(request):
    method = request.method
    path = request.path.encode('ascii', 'backslashreplace').decode('ascii')

# Path: tests/fixtures/routes.py

# 
# Path: tests/fixtures/server.py
# def get_id_from_path(path):
# def get_response_data(method, path, specifier):
# def get_response_status():
# async def handler(request):
# async def server(event_loop):


# Path: perftests/server.py
from tests.fixtures.routes import routes
from tests.fixtures.server import rest_headers
from itertools import cycle
from perftests.account_changes_json import changes
from aiohttp import web
import gzip
import asyncio


routes.update({('GET', '/v3/accounts/123-123-1234567-123/changes'): cycle(changes)})

async def handler(request):
    method = request.method
    path = request.path.encode('ascii', 'backslashreplace').decode('ascii')

    response = routes[(method, path)]