#NEWLINE# def test_config( self ) : #NEWLINE# #INDENT# LOCAL_CONFIG = os . path . join ( TEMP_DIR , '.pep8' ) #NEWLINE# with open ( LOCAL_CONFIG , mode = 'w' ) as f : #NEWLINE# #INDENT# f . write ( '[pep8]\nindent-size=2' ) #NEWLINE# #UNINDENT# original = 'def f(x):\n    return 2*x\n' #NEWLINE# modified = 'def f(x):\n    return 3*x\n' #NEWLINE# expected = 'def f(x):\n  return 3 * x\n' #NEWLINE# self . check ( original , expected , expected , 'test_config' , [ ] , apply_config = True ) #NEWLINE# remove ( LOCAL_CONFIG )