Files
openide/python/testData/intentions/convertStaticMethodToFunctionUsage.py
Mikhail Golubev baa3dfe8e6 Rename test data files for intentions to be consistent with other PyCharm tests
Initial text is in "<testName>.py" and expected result is in "<testName>_after.py".
Previously they were called "before<testName>.py" and "after<testName>.py" which
was very inconvenient, because these files were too far away from each other and
expected data came first.
2015-12-04 16:03:32 +03:00

17 lines
250 B
Python

class MyClass(object):
"""
My class to show intention.
"""
def __init__(self):
self.a = 1
@staticmethod
def my_<caret>static_method():
import code
import time
time.sleep(100)
print code
MyClass().my_static_method()