void () { final PyElementGenerator generator = PyElementGenerator.getInstance(myFixture.getProject()); final PyExpression expression = generator.createExpressionFromText(LanguageLevel.getLatest(), "['a' + 'b'] + ['c']"); List<Object> result = (List<Object>) new PyPathEvaluator("").evaluate(expression); assertEquals(2, result.size()); assertEquals("ab", result.get(0)); assertEquals("c", result.get(1)); }