#NEWLINE# def test_nocmd_noenv_def( self ) : #NEWLINE# #INDENT# '\n        Setup: no --config option, $GREEN_CONFIG unset, $HOME/.green exists\n        Result: load $HOME/.green\n        ' #NEWLINE# os . unlink ( self . cmd_filename ) #NEWLINE# os . unlink ( self . env_filename ) #NEWLINE# with ModifiedEnvironment ( GREEN_CONFIG = None , HOME = self . tmpd ) : #NEWLINE# #INDENT# cfg = config . getConfig ( ) #NEWLINE# ae = self . assertEqual #NEWLINE# ar = self . assertRaises #NEWLINE# ae ( [ 'green' ] , cfg . sections ( ) ) #NEWLINE# ae ( self . default_filename , cfg . get ( 'green' , 'omit-patterns' ) ) #NEWLINE# ar ( configparser . NoOptionError , cfg . get , 'green' , 'run-coverage' ) #NEWLINE# ae ( ae . default_logging , cfg . getboolean ( 'green' , 'logging' ) ) #NEWLINE# ar ( configparser . NoOptionError , cfg . getboolean , 'green' , 'no-skip-report' ) #NEWLINE# ae ( self . default_version , cfg . getboolean ( 'green' , 'version' ) )