Refactored extract method tests

This commit is contained in:
Andrey Vlasovskikh
2012-05-22 22:23:35 +04:00
parent cf23be8e1f
commit c10a567b73
53 changed files with 321 additions and 58 deletions
@@ -0,0 +1,8 @@
class Foo(X, Y, Z):
def bar(self, base_new):
try: base_new.__init__(self)
except AttributeError: pass
def __init__(self):
for base in self__class__.__bases__:
self.bar(base)