#NEWLINE# def getResourceFor( self , root , url ) : #NEWLINE# #INDENT# r = testutil . FakeRequest ( ) #NEWLINE# self . request = r #NEWLINE# r . postpath = url . split ( '/' ) #NEWLINE# ctx = context . RequestContext ( tag = self . request ) #NEWLINE# return util . maybeDeferred ( appserver . NevowSite ( root ) . getPageContextForRequestContext , r )