Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Assign NameStore Str Assign NameStore BinOpMod NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Call NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad ListLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad ListLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad ListLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str decorator_list decorator_list
N/A N/A 
Tests for L{twisted.web.resource}.
 twisted.trial.unittest TestCase twisted.web.error UnsupportedMethod twisted.web.resource NOT_FOUND FORBIDDEN Resource ErrorPage NoResource ForbiddenResource getChildForRequest twisted.web.test.requesthelper DummyRequest ErrorPageTests N/A TestCase N/A N/A 
    Tests for L{ErrorPage}, L{NoResource}, and L{ForbiddenResource}.
     N/A errorPage ErrorPage N/A noResource NoResource N/A forbiddenResource ForbiddenResource test_getChild N/A N/A self N/A N/A N/A 
        The C{getChild} method of L{ErrorPage} returns the L{ErrorPage} it is
        called on.
         N/A page N/A N/A self errorPage 321 foo bar N/A N/A N/A self assertIdentical N/A N/A page getChild name N/A object page N/A _pageRenderingTest N/A N/A self page code brief detail N/A N/A N/A request N/A DummyRequest N/A N/A template 
<html>
  <head><title>%s - %s</title></head>
  <body>
    <h1>%s</h1>
    <p>%s</p>
  </body>
</html>
 N/A expected N/A template N/A code brief brief detail N/A N/A N/A self assertEqual N/A N/A page render request N/A N/A expected encode utf-8 N/A N/A N/A self assertEqual N/A request responseCode code N/A N/A N/A self assertEqual N/A request outgoingHeaders N/A content-type text/html; charset=utf-8 N/A test_errorPageRendering N/A N/A self N/A N/A N/A 
        L{ErrorPage.render} returns a C{bytes} describing the error defined by
        the response code and message passed to L{ErrorPage.__init__}.  It also
        uses that response code to set the response code on the L{Request}
        passed in.
         N/A code 321 N/A brief brief description text N/A detail much longer text might go here N/A page N/A N/A self errorPage code brief detail N/A N/A N/A self _pageRenderingTest page code brief detail N/A test_noResourceRendering N/A N/A self N/A N/A N/A 
        L{NoResource} sets the HTTP I{NOT FOUND} code.
         N/A detail long message N/A page N/A N/A self noResource detail N/A N/A N/A self _pageRenderingTest page NOT_FOUND No Such Resource detail N/A test_forbiddenResourceRendering N/A N/A self N/A N/A N/A 
        L{ForbiddenResource} sets the HTTP I{FORBIDDEN} code.
         N/A detail longer message N/A page N/A N/A self forbiddenResource detail N/A N/A N/A self _pageRenderingTest page FORBIDDEN Forbidden Resource detail N/A N/A DynamicChild N/A Resource N/A N/A 
    A L{Resource} to be created on the fly by L{DynamicChildren}.
     __init__ N/A N/A self path request N/A N/A N/A N/A N/A Resource __init__ self N/A N/A self path path N/A N/A self request request N/A N/A DynamicChildren N/A Resource N/A N/A 
    A L{Resource} with dynamic children.
     getChild N/A N/A self path request N/A N/A N/A N/A DynamicChild path request N/A N/A BytesReturnedRenderable N/A Resource N/A N/A 
    A L{Resource} with minimal capabilities to render a response.
     __init__ N/A N/A self response N/A N/A N/A 
        @param response: A C{bytes} object giving the value to return from
            C{render_GET}.
         N/A N/A N/A Resource __init__ self N/A N/A self _response response N/A render_GET N/A N/A self request N/A N/A N/A 
        Render a response to a I{GET} request by returning a short byte string
        to be written by the server.
         N/A N/A self _response N/A N/A ImplicitAllowedMethods N/A Resource N/A N/A 
    A L{Resource} which implicitly defines its allowed methods by defining
    renderers to handle them.
     render_GET N/A N/A self request N/A N/A N/A N/A render_PUT N/A N/A self request N/A N/A N/A N/A N/A ResourceTests N/A TestCase N/A N/A 
    Tests for L{Resource}.
     test_staticChildren N/A N/A self N/A N/A N/A 
        L{Resource.putChild} adds a I{static} child to the resource.  That child
        is returned from any call to L{Resource.getChildWithDefault} for the
        child's path.
         N/A resource N/A Resource N/A child N/A Resource N/A sibling N/A Resource N/A N/A N/A resource putChild foo child N/A N/A N/A resource putChild bar sibling N/A N/A N/A self assertIdentical child N/A N/A resource getChildWithDefault foo N/A DummyRequest N/A N/A test_dynamicChildren N/A N/A self N/A N/A N/A 
        L{Resource.getChildWithDefault} delegates to L{Resource.getChild} when
        the requested path is not associated with any static child.
         N/A path foo N/A request N/A DummyRequest N/A N/A resource N/A DynamicChildren N/A child N/A N/A resource getChildWithDefault path request N/A N/A N/A self assertIsInstance child DynamicChild N/A N/A N/A self assertEqual N/A child path path N/A N/A N/A self assertIdentical N/A child request request N/A test_defaultHEAD N/A N/A self N/A N/A N/A 
        When not otherwise overridden, L{Resource.render} treats a I{HEAD}
        request as if it were a I{GET} request.
         N/A expected insert response here N/A request N/A DummyRequest N/A N/A N/A request method HEAD N/A resource N/A BytesReturnedRenderable expected N/A N/A N/A self assertEqual expected N/A N/A resource render request N/A test_explicitAllowedMethods N/A N/A self N/A N/A N/A 
        The L{UnsupportedMethod} raised by L{Resource.render} for an unsupported
        request method has a C{allowedMethods} attribute set to the value of the
        C{allowedMethods} attribute of the L{Resource}, if it has one.
         N/A expected N/A GET HEAD PUT N/A resource N/A Resource N/A N/A resource allowedMethods expected N/A request N/A DummyRequest N/A N/A N/A request method FICTIONAL N/A exc N/A N/A self assertRaises UnsupportedMethod N/A resource render request N/A N/A N/A self assertEqual N/A set expected N/A set N/A exc allowedMethods N/A test_implicitAllowedMethods N/A N/A self N/A N/A N/A 
        The L{UnsupportedMethod} raised by L{Resource.render} for an unsupported
        request method has a C{allowedMethods} attribute set to a list of the
        methods supported by the L{Resource}, as determined by the
        I{render_}-prefixed methods which it defines, if C{allowedMethods} is
        not explicitly defined by the L{Resource}.
         N/A expected N/A set N/A GET HEAD PUT N/A resource N/A ImplicitAllowedMethods N/A request N/A DummyRequest N/A N/A N/A request method FICTIONAL N/A exc N/A N/A self assertRaises UnsupportedMethod N/A resource render request N/A N/A N/A self assertEqual expected N/A set N/A exc allowedMethods N/A N/A GetChildForRequestTests N/A TestCase N/A N/A 
    Tests for L{getChildForRequest}.
     test_exhaustedPostPath N/A N/A self N/A N/A N/A 
        L{getChildForRequest} returns whatever resource has been reached by the
        time the request's C{postpath} is empty.
         N/A request N/A DummyRequest N/A N/A resource N/A Resource N/A result N/A getChildForRequest resource request N/A N/A N/A self assertIdentical resource result N/A test_leafResource N/A N/A self N/A N/A N/A 
        L{getChildForRequest} returns the first resource it encounters with a
        C{isLeaf} attribute set to C{True}.
         N/A request N/A DummyRequest N/A foo bar N/A resource N/A Resource N/A N/A resource isLeaf True N/A result N/A getChildForRequest resource request N/A N/A N/A self assertIdentical resource result N/A test_postPathToPrePath N/A N/A self N/A N/A N/A 
        As path segments from the request are traversed, they are taken from
        C{postpath} and put into C{prepath}.
         N/A request N/A DummyRequest N/A foo bar N/A root N/A Resource N/A child N/A Resource N/A N/A child isLeaf True N/A N/A N/A root putChild foo child N/A N/A N/A self assertIdentical child N/A getChildForRequest root request N/A N/A N/A self assertEqual N/A request prepath N/A foo N/A N/A N/A self assertEqual N/A request postpath N/A bar N/A N/A