diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-23 10:32:07 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-23 10:32:07 -0700 |
commit | b9ff5f3e4b11a7b8928e51629df0bfde4c6ebe53 (patch) | |
tree | c62e4c408f496f042e8b116ce4631ec80dabf77b /tests/test_auth.py | |
parent | 9621e914bc433f8deb72c17fedb7b73365cbac21 (diff) |
Rename util func that trips pytest's default discovery.
Wouldn't matter as much under pytest-relaxed discovery, but, eh
Diffstat (limited to 'tests/test_auth.py')
-rw-r--r-- | tests/test_auth.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_auth.py b/tests/test_auth.py index e78397c6..e1f06cc1 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -32,7 +32,7 @@ from paramiko import ( from paramiko import AUTH_FAILED, AUTH_PARTIALLY_SUCCESSFUL, AUTH_SUCCESSFUL from paramiko.py3compat import u from tests.loop import LoopSocket -from tests.util import test_path +from tests.util import _support _pwd = u('\u2022') @@ -40,7 +40,7 @@ _pwd = u('\u2022') class NullServer (ServerInterface): paranoid_did_password = False paranoid_did_public_key = False - paranoid_key = DSSKey.from_private_key_file(test_path('test_dss.key')) + paranoid_key = DSSKey.from_private_key_file(_support('test_dss.key')) def get_allowed_auths(self, username): if username == 'slowdive': @@ -118,7 +118,7 @@ class AuthTest (unittest.TestCase): self.sockc.close() def start_server(self): - host_key = RSAKey.from_private_key_file(test_path('test_rsa.key')) + host_key = RSAKey.from_private_key_file(_support('test_rsa.key')) self.public_host_key = RSAKey(data=host_key.asbytes()) self.ts.add_server_key(host_key) self.event = threading.Event() @@ -170,7 +170,7 @@ class AuthTest (unittest.TestCase): self.tc.connect(hostkey=self.public_host_key) remain = self.tc.auth_password(username='paranoid', password='paranoid') self.assertEqual(['publickey'], remain) - key = DSSKey.from_private_key_file(test_path('test_dss.key')) + key = DSSKey.from_private_key_file(_support('test_dss.key')) remain = self.tc.auth_publickey(username='paranoid', key=key) self.assertEqual([], remain) self.verify_finished() |