#NEWLINE# def test_host_set( self ) : #NEWLINE# #INDENT# arglist = [ '--enable' , '--disable-maintenance' , str ( result . host . id ) ] #NEWLINE# verifylist = [ ( 'enable' , True ) , ( 'enable_maintenance' , False ) , ( 'host' , str ( self . host . id ) ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# result = self . cmd . take_action ( parsed_args ) #NEWLINE# self . assertIsNone ( result ) #NEWLINE# body = { #NEWLINE# #INDENT# 'status' : True , #NEWLINE# 'maintenance_mode' : False , #NEWLINE# #UNINDENT# } #NEWLINE# self . host_mock . update . assert_called_with ( self . host . id , body )