void () { final FileTemplateManager instance = FileTemplateManager.getInstance(myFixture.getProject()); final FileTemplate template = instance.getInternalTemplate("Python Script"); assertNotNull(template); final String oldTemplateContent = template.getText(); try { template.setText("NAME = '${NAME}'"); doMoveSymbolTest("C", "b.py"); } finally { template.setText(oldTemplateContent); } }