title: How to unittest aiohttp.web applications
body: <p>Given an aiohttp.web application with views like this one:</p>
  
  <pre><code>async def hello(request):
      return web.Response(body=b"Hello, world")
  </code></pre>
  
  <p>I'm trying to understand how to properly unit-test them.</p>
  
  <p>I normally use Django's own <a href="https://docs.djangoproject.com/en/1.9/topics/testing/tools/#overview-and-a-quick-example" rel="noreferrer">test client</a> when writing Django apps, and was looking for something similar for aiohttp.web. I'm not sure this is the right approach or not.</p>
  
  <p><strong>TL;DR: How do I simulate a request to an <code>aiohttp.web</code> app in a unittest?</strong></p>