#NEWLINE# def test_publishNonExisting( self ) : #NEWLINE# #INDENT# def cb( err ) : #NEWLINE# #INDENT# self . assertEqual ( '404' , err . status ) #NEWLINE# #UNINDENT# d = self . client . publish ( TEST_ENTRY , ( 'xmpp:%s?node=test' % component ) ) #NEWLINE# self . assertFailure ( d , error . Error ) #NEWLINE# d . addCallback ( cb ) #NEWLINE# return d