def test_global_config(self):
        with open(GLOBAL_CONFIG, mode='w') as f:
            f.write("[pep8]\nignore=E999")
        args_after = parse_args(['--global-config=%s' % GLOBAL_CONFIG],
                                apply_config=True, root=TEMP_DIR)
        self.assertIn('E999', args_after.ignore)
        args_after = parse_args(['--global-config=False'],
                                apply_config=True, root=TEMP_DIR)
        self.assertNotIn('E999', args_after.ignore)
dataset/ETHPy150Open hayd/pep8radius/tests/test_main.py/TestMain.test_global_config/original