void () { myFixture.configureByFile(getTestName(true) + ".py"); LookupElement[] variants = myFixture.completeBasic(); assertNotNull(variants); TestLookupElementPresentation presentation = new TestLookupElementPresentation(); LookupElement attrVariant = ContainerUtil.find(variants, v -> v.getLookupString().equals("attr=")); assertNotNull(attrVariant); attrVariant.renderElement(presentation); assertTrue(presentation.getItemText().endsWith("=")); }