void () { // IDEA-69724 String initial = """ def method_name( desired_impulse_response, desired_response_parameters, inverse_filter_length,\s observed_impulse_response): # Extract from here to ... desired_impulse_response = {'dirac, 'gaussian', logistic_derivative'} return desired, o"""; final PsiFile file = PyElementGenerator.getInstance(myFixture.getProject()).createDummyFile(LanguageLevel.getLatest(), initial); final PsiElement reformatted = CodeStyleManager.getInstance(myFixture.getProject()).reformat(file); String expected = """ def method_name( desired_impulse_response, desired_response_parameters, inverse_filter_length, observed_impulse_response): # Extract from here to ... desired_impulse_response = {'dirac, ' gaussian ', logistic_derivative'} return desired, o """; assertEquals(expected, reformatted.getText()); }