void () { Map<String, PsiElement> marks = loadTest(); final int TARGET_NUM = 3; Assert.assertEquals(TARGET_NUM + 1, marks.size()); PsiElement src = marks.get("<src>").getParent(); // const -> expr; PsiElement[] dsts = new PsiElement[TARGET_NUM]; for (int i=0; i<TARGET_NUM; i+=1) { PsiElement dst = marks.get("<dst" + (i + 1) + ">").getParent(); // ident -> target expr Assert.assertTrue(dst instanceof PyTargetExpression); dsts[i] = dst; } PyAssignmentStatement stmt = (PyAssignmentStatement)src.getParent(); List<Pair<PyExpression, PyExpression>> mapping = stmt.getTargetsToValuesMapping(); Assert.assertEquals(TARGET_NUM, mapping.size()); for (int i=0; i<TARGET_NUM; i+=1) { Pair<PyExpression, PyExpression> pair = mapping.get(i); Assert.assertEquals(dsts[i], pair.getFirst()); Assert.assertEquals(src, pair.getSecond()); } }