#NEWLINE# def test_render( self ) : #NEWLINE# #INDENT# '\n        L{ResourceScriptDirectory.render} sets the HTTP response code to I{NOT\n        FOUND}.\n        ' #NEWLINE# resource = ResourceScriptDirectory ( self . mktemp ( ) ) #NEWLINE# request = DummyRequest ( [ '' ] ) #NEWLINE# d = _render ( resource , self ) #NEWLINE# def cbRendered( ignored ) : #NEWLINE# #INDENT# self . assertEqual ( request . responseCode , NOT_FOUND ) #NEWLINE# #UNINDENT# d . addCallback ( cbRendered ) #NEWLINE# return d