void (final String text, final String expected) { myFixture.configureByText(PythonFileType.INSTANCE, text); assertEquals(expected, PythonFileType.getCharsetFromEncodingDeclaration(myFixture.getFile())); }