fixed PY-6887 Paste changes code logic when making top-level function inner

This commit is contained in:
Ekaterina Tuzova
2012-07-06 15:41:59 +04:00
parent 0bd83dfb36
commit 84cf35f70e
4 changed files with 23 additions and 1 deletions
@@ -0,0 +1,9 @@
def foo(self):
x = 1
y = 2
def foo(self):
x = 1
y = 2
z = 3
@@ -0,0 +1,5 @@
def foo(self):
x = 1
y = 2
<caret>
z = 3
@@ -0,0 +1,4 @@
<selection>def foo(self):
x = 1
y = 2
</selection>
@@ -147,11 +147,15 @@ public class PyCopyPasteTest extends PyTestCase {
doTestMultiLine();
}
public void testIndentInnerFunction1() { //PY-6887
doTestMultiLine();
}
public void testIndentFunction() {
doTestMultiLine();
}
public void testDecreaseIndent() {
public void testDecreaseIndent() { //PY-6889
doTestMultiLine();
}