#NEWLINE# def test_host_maintenance_bad_host( self ) : #NEWLINE# #INDENT# self . req . environ [ 'nova.context' ] . is_admin = True #NEWLINE# dest = 'dummydest' #NEWLINE# with testtools . ExpectedException ( webob . exc . HTTPNotFound , ( '.*%s.*' % dest ) ) : #NEWLINE# #INDENT# self . controller . update ( self . req , dest , body = { #NEWLINE# #INDENT# 'maintenance_mode' : 'enable' , #NEWLINE# #UNINDENT# } )