#NEWLINE# def test_oldresource( self ) : #NEWLINE# #INDENT# from twisted.web import resource #NEWLINE# r = resource . Resource ( ) #NEWLINE# r . putChild ( 'foo' , self ) #NEWLINE# return self . getResourceFor ( r , 'foo' ) . addCallback ( ( lambda result : self . assertIdentical ( r , result . tag . original ) ) )