PY-1767: auto-add a correct first parameter to a method + tests.

This commit is contained in:
Dmitry Cheryasov
2010-11-30 18:37:10 +02:00
parent ef6026f185
commit b04729ef36
21 changed files with 249 additions and 43 deletions
@@ -0,0 +1,3 @@
class A(object):
@classmethod
def foo(cls):
@@ -0,0 +1,3 @@
class A(object):
@classmethod
def foo<caret>
@@ -0,0 +1,3 @@
class A(type):
@classmethod
def f(cls):
@@ -0,0 +1,3 @@
class A(type):
@classmethod
def f<caret>
@@ -0,0 +1,2 @@
class A(type):
def __new__(typ):
@@ -0,0 +1,2 @@
class A(type):
def __new__<caret>
@@ -0,0 +1,2 @@
class A(type):
def f(cls):
@@ -0,0 +1,2 @@
class A(type):
def f<caret>
@@ -0,0 +1,2 @@
class A(object):
def foo(self):
@@ -0,0 +1,2 @@
class A(object):
def foo<caret>
@@ -0,0 +1,2 @@
class A(object):
def __init__(self):
@@ -0,0 +1,2 @@
class A(object):
def __init__<caret>
@@ -0,0 +1,2 @@
class A(object):
def __new__(cls):
@@ -0,0 +1,2 @@
class A(object):
def __new__<caret>
@@ -0,0 +1,3 @@
class A(object):
@staticmethod
def foo():
@@ -0,0 +1,3 @@
class A(object):
@staticmethod
def foo<caret>