title: How should I test an app build with tornado which uses python 3.5 async?
body: <p>This is my handler:</p>
  
  <pre><code>class ResourcesHandler(MetaResourceHandler):
      @tornado.web.asynchronous
      async def post(self):
          arguments = self.get_json_arguments(force_presence=True)
          resources = self._get_collection()
  
          try:
              resource = await resources.insert({**arguments})
          except Exception as e:
              self._exit_exception_500(e)
          else:
              self.update_response(
                  self._prepare_resource({"_id": resource})
              )
              self.finish_request(status_code=http_status.HTTP_201)
  </code></pre>
  
  <p>And this is how I start it:</p>
  
  <pre><code>app = tornado.web.Application(('/resources', ResourcesHandler))
  app.listen(8888)
  tornado.ioloop.IOLoop.current().start()
  </code></pre>
  
  <p>If I start and try to test with curl it works but, when I'm writing my automated tests with <code>tornado.testing.AsyncHTTPTestCase</code>it hangs forever and raises a timeout. I've already tried to test with pytest-tornado but the behavior is the same.</p>
  
  <p>Am I missing something?</p>
  
  <p>Thank you! </p>