擅长:python、mysql、java
<p><code>AsyncHTTPTestCase</code>是为与第一个示例类似的测试而设计的,使用<code>self.fetch</code>而不是直接实例化处理程序。</p>
<p><code>RequestHandler</code>不是设计为在不使用<code>Application</code>的情况下手动实例化的,因此如果您有希望在没有完整HTTP堆栈的情况下测试的功能,则此代码通常应位于静态函数或非<code>RequestHandler</code>类中。</p>