PY-20427 Handle qualified references in the module where symbol is moved to

This commit is contained in:
Mikhail Golubev
2016-11-22 17:50:21 +03:00
parent 5c3b5e06fa
commit 5fa7c78ebe
6 changed files with 41 additions and 6 deletions
@@ -371,6 +371,11 @@ public class PyMoveTest extends PyTestCase {
doMoveSymbolTest("A", "b.py");
}
// PY-20427
public void testQualifiedReferenceInDestinationModule() {
doMoveSymbolTest("FOO", "b.py");
}
private void doMoveFileTest(String fileName, String toDirName) {
Project project = myFixture.getProject();
PsiManager manager = PsiManager.getInstance(project);