#NEWLINE# def test_options_deprecation_from_config( 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 ( config_path , 'w+' ) as f : #NEWLINE# #INDENT# f . write ( dedent ( '\n          [GLOBAL]\n          verify_config: False\n          pythonpath: [\n              "%(buildroot)s/testprojects/src/python",\n            ]\n\n          backend_packages: [\n              "plugins.dummy_options",\n            ]\n\n          [options]\n          colors: False\n        ' ) ) #NEWLINE# #UNINDENT# pants_run = self . run_pants ( [ '--config-override={}' . format ( config_path ) , 'options' ] ) #NEWLINE# self . assert_success ( pants_run ) #NEWLINE# self . assertIn ( 'dummy-options.normal_option' , f . stdout_data ) #NEWLINE# self . assertIn ( 'dummy-options.dummy_crufty_deprecated_but_still_functioning' , pants_run . stdout_data ) #NEWLINE# self . assertNotIn ( 'dummy-options.dummy_crufty_expired' , pants_run . stdout_data )