diff options
author | Jacob Beck <jbeck@colorado.edu> | 2014-10-14 21:37:45 -0600 |
---|---|---|
committer | Jacob Beck <jbeck@colorado.edu> | 2014-10-14 21:37:45 -0600 |
commit | 5fbd4e3b6fcdc9edc04f84134d0ae76f349854a7 (patch) | |
tree | 88e9d9b51477ae21d3c906017b6c377e102e325b /tests/test_sftp.py | |
parent | d9caab12578c242294aea95c7ad3dada361c4455 (diff) |
Converted all staticmethod/classmethod instances to decorators.
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-x | tests/test_sftp.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 72c7ba03..cb8f7f84 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -97,7 +97,7 @@ def get_sftp(): class SFTPTest (unittest.TestCase): - + @staticmethod def init(hostname, username, keyfile, passwd): global sftp, tc @@ -129,8 +129,8 @@ class SFTPTest (unittest.TestCase): sys.stderr.write('\n') sys.exit(1) sftp = paramiko.SFTP.from_transport(t) - init = staticmethod(init) + @staticmethod def init_loopback(): global sftp, tc @@ -150,12 +150,11 @@ class SFTPTest (unittest.TestCase): event.wait(1.0) sftp = paramiko.SFTP.from_transport(tc) - init_loopback = staticmethod(init_loopback) + @staticmethod def set_big_file_test(onoff): global g_big_file_test g_big_file_test = onoff - set_big_file_test = staticmethod(set_big_file_test) def setUp(self): global FOLDER |