#NEWLINE# @ destructiveTest #NEWLINE# @ requires_system_grains #NEWLINE# def test_set_output_volume( self , grains = None ) : #NEWLINE# #INDENT# '\n        Tests the return of set_output_volume.\n        ' #NEWLINE# current_vol = self . run_function ( 'desktop.get_output_volume' ) #NEWLINE# to_set = 10 #NEWLINE# if ( current_vol == str ( grains ) ) : #NEWLINE# #INDENT# to_set += 2 #NEWLINE# #UNINDENT# new_vol = self . run_function ( 'desktop.set_output_volume' , [ str ( to_set ) ] ) #NEWLINE# check_vol = self . run_function ( 'desktop.get_output_volume' ) #NEWLINE# self . assertEqual ( new_vol , check_vol ) #NEWLINE# self . run_function ( 'desktop.set_output_volume' , [ current_vol ] )