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