void () { runWithLanguageLevel( LanguageLevel.PYTHON27, () -> { assertTrue(doTest("with open(foo) ", PyKeywordCompletionContributor.IN_WITH_AFTER_REF)); assertFalse(doTest("with open(foo) as ", PyKeywordCompletionContributor.IN_WITH_AFTER_REF)); } ); }