diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-12-18 11:08:10 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-12-31 16:10:47 -0500 |
commit | 0b1529b2ce6e5b69db96546c8a168096aaeb3606 (patch) | |
tree | cd41633bdc85ab54098f45b6900443443251aab2 | |
parent | 55dcceee24bb74371f3e60c95140e546f4a51dde (diff) | |
download | paramiko-0b1529b2ce6e5b69db96546c8a168096aaeb3606.tar.gz |
Rename a confusing old test var
-rw-r--r-- | tests/_util.py | 4 | ||||
-rw-r--r-- | tests/authentication.py | 2 | ||||
-rw-r--r-- | tests/test_auth.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/_util.py b/tests/_util.py index cedfdf03..9a9bf6f6 100644 --- a/tests/_util.py +++ b/tests/_util.py @@ -40,7 +40,7 @@ def needs_builtin(name): slow = pytest.mark.slow -_pwd = u('\u2022') +utf8_password = u('\u2022') FINGERPRINTS = { @@ -97,7 +97,7 @@ class NullServer(ServerInterface): if self.paranoid_did_public_key: return AUTH_SUCCESSFUL return AUTH_PARTIALLY_SUCCESSFUL - if (username == 'utf8') and (password == _pwd): + if (username == 'utf8') and (password == utf8_password): return AUTH_SUCCESSFUL if (username == 'non-utf8') and (password == '\xff'): return AUTH_SUCCESSFUL diff --git a/tests/authentication.py b/tests/authentication.py index d1fbad8e..6238a8bb 100644 --- a/tests/authentication.py +++ b/tests/authentication.py @@ -2,7 +2,7 @@ from pytest import skip, raises from paramiko import BadAuthenticationType, AuthenticationException -from ._util import slow +from ._util import slow, utf8_password # NOTE: GSSAPI is kind of a standalone feature and has its own tests in diff --git a/tests/test_auth.py b/tests/test_auth.py index d4b0612b..c79b482d 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -25,7 +25,7 @@ from paramiko import ( ) from pytest import raises -from ._util import _support, slow, _pwd +from ._util import _support, slow, utf8_password class TestPasswordAuth: @@ -55,7 +55,7 @@ class TestPasswordAuth: verify that utf-8 encoding happens in authentication. """ trans.connect() - remains = trans.auth_password('utf8', _pwd) + remains = trans.auth_password('utf8', utf8_password) assert remains == [] def test_auth_non_utf8(self, trans): |