<s> import asyncio <EOL> from aiohttp import web <EOL> import pytest <EOL> from webtest_aiohttp import TestApp <EOL> @ pytest . fixture ( scope = '<STR_LIT>' ) <EOL> def loop ( ) : <EOL> """<STR_LIT>""" <EOL> loop_ = asyncio . get_event_loop ( ) <EOL> asyncio . set_event_loop ( loop_ ) <EOL> return loop_ <EOL> @ pytest . fixture ( ) <EOL> def create_client ( ) : <EOL> def maker ( app , * args , ** kwargs ) : <EOL> kwargs . setdefault ( '<STR_LIT>' , False ) <EOL> return TestApp ( app , * args , ** kwargs ) <EOL> return maker <EOL> def make_dummy_handler ( ** kwargs ) : <EOL> @ asyncio . coroutine <EOL> def dummy ( request ) : <EOL> return web . Response ( ** kwargs ) <EOL> return dummy </s>
