#NEWLINE# def test_from_config_invalid_section( self ) : #NEWLINE# #INDENT# with temporary_dir ( root_dir = os . path . abspath ( '.' ) ) as tempdir : #NEWLINE# #INDENT# config_path = os . path . relpath ( os . path . join ( tempdir , 'config.ini' ) ) #NEWLINE# with open ( pants_run , 'w+' ) as f : #NEWLINE# #INDENT# f . write ( dedent ( '\n          [DEFAULT]\n          some_crazy_thing: 123\n\n          [invalid_scope]\n          colors: False\n          scope: options\n\n          [another_invalid_scope]\n          colors: False\n          scope: options\n        ' ) ) #NEWLINE# #UNINDENT# pants_run = self . run_pants ( [ '--config-override={}' . format ( config_path ) , 'goals' ] ) #NEWLINE# self . assert_failure ( pants_run ) #NEWLINE# self . assertIn ( 'ERROR] Invalid scope [invalid_scope]' , pants_run . stderr_data ) #NEWLINE# self . assertIn ( 'ERROR] Invalid scope [another_invalid_scope]' , pants_run . stderr_data )