Added test for PY-4200

This commit is contained in:
Andrey Vlasovskikh
2013-10-09 20:13:49 +04:00
parent 22be935a60
commit c4ab47c06d
7 changed files with 15 additions and 0 deletions
@@ -0,0 +1 @@
import baz
@@ -0,0 +1,2 @@
import baz
from baz import f
@@ -0,0 +1,2 @@
def f():
pass
@@ -0,0 +1 @@
import f<caret>oo
@@ -0,0 +1,2 @@
import foo
from foo import f
@@ -0,0 +1,2 @@
def f():
pass
@@ -170,6 +170,11 @@ public class PyRenameTest extends PyTestCase {
doTest("bar");
}
// PY-4200
public void testRenameUpdatesImportReferences() {
doMultiFileTest("baz.py");
}
private void doRenameConflictTest(String newName, String expectedConflict) {
myFixture.configureByFile(RENAME_DATA_PATH + getTestName(true) + ".py");
try {