void () { doCopyDirectory(); Presentation presentation = doLaunchAction(PLAIN_DIR); assertTrue(presentation.isEnabledAndVisible()); assertEquals(presentation.getText(), PyBundle.message("python.namespace.package.folder")); assertTrue(myNspService.isMarked(myFixture.findFileInTempDir(PLAIN_DIR))); presentation = doLaunchAction(PLAIN_DIR); assertTrue(presentation.isEnabledAndVisible()); assertEquals(presentation.getText(), PyBundle.message("python.unmark.as.namespace.package")); assertFalse(myNspService.isMarked(myFixture.findFileInTempDir(PLAIN_DIR))); }