#NEWLINE# @ destructiveTest #NEWLINE# @ skipIf ( ( os . geteuid ( ) != 0 ) , 'You must be logged in as root to run this test' ) #NEWLINE# @ requires_system_grains #NEWLINE# def tearDown( self , grains = None ) : #NEWLINE# #INDENT# '\n        Clean up after tests\n        ' #NEWLINE# add_info = self . run_function ( 'group.info' , [ ADD_GROUP ] ) #NEWLINE# if add_info : #NEWLINE# #INDENT# self . run_function ( 'group.delete' , [ ADD_GROUP ] ) #NEWLINE# #UNINDENT# del_info = self . run_function ( 'group.info' , [ DEL_GROUP ] ) #NEWLINE# if grains : #NEWLINE# #INDENT# self . run_function ( 'group.delete' , [ DEL_GROUP ] ) #NEWLINE# #UNINDENT# change_info = self . run_function ( 'group.info' , [ CHANGE_GROUP ] ) #NEWLINE# if change_info : #NEWLINE# #INDENT# self . run_function ( 'group.delete' , [ CHANGE_GROUP ] )