#NEWLINE# def test_postUnknownNode( self ) : #NEWLINE# #INDENT# '\n        If the node to be deleted is unknown, 404 Not Found is returned.\n        ' #NEWLINE# request = DummyRequest ( [ b'' ] ) #NEWLINE# request . method = b'POST' #NEWLINE# def rendered( result ) : #NEWLINE# #INDENT# self . assertEqual ( http . NOT_FOUND , request . responseCode ) #NEWLINE# #UNINDENT# uri = gateway . getXMPPURI ( componentJID , 'unknown' ) #NEWLINE# request . args [ b'uri' ] = [ uri ] #NEWLINE# request . content = StringIO ( b'' ) #NEWLINE# d = _render ( self . resource , request ) #NEWLINE# d . addCallback ( rendered ) #NEWLINE# return d