diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-12-18 14:15:49 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-12-31 16:10:47 -0500 |
commit | 92c1a4f9ad7b0127301e8f33d596e3dd7f5c54ec (patch) | |
tree | 16625475f0c3b9f58097cfdc1d8b348e1e8bc975 | |
parent | e87d14cf96410fdcc1f642f70926a46c46686f25 (diff) | |
download | paramiko-92c1a4f9ad7b0127301e8f33d596e3dd7f5c54ec.tar.gz |
Tweak earlier migrated test
-rw-r--r-- | tests/authentication.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/authentication.py b/tests/authentication.py index 42fde80a..f16e8a62 100644 --- a/tests/authentication.py +++ b/tests/authentication.py @@ -117,12 +117,14 @@ class EncryptedPubKey: # class ManyAuthsEnterOneAuthLeaves: - # TODO: touch this up, came from old suite - def incorrect_password_excepts(self, trans): + def can_send_good_password_after_bad(self, trans): trans.start_client() with raises(AuthenticationException): + # Will raise an auth exception (wrong password) trans.auth_password(username='slowdive', password='error') - trans.auth_password(username='slowdive', password='pygmalion') + # Should succeed + rest = trans.auth_password(username='slowdive', password='pygmalion') + assert rest == [] def test_interactive_auth_fallback(self, trans): """ |