summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-09-26 13:10:37 -0500
committerJeff Forcier <jeff@bitprophet.org>2019-09-26 13:46:14 -0500
commitb1bbacdcc4f0be50b8fe584f329d344fb13544bd (patch)
tree9b31ee8cf93ec765a8f710a3635223d8a52454e8
parent192fd67514a22394c8f24ded1d00429d97a92cc8 (diff)
downloadparamiko-b1bbacdcc4f0be50b8fe584f329d344fb13544bd.tar.gz
Sort top level import related junk
-rw-r--r--paramiko/__init__.py8
-rw-r--r--tests/test_util.py40
2 files changed, 24 insertions, 24 deletions
diff --git a/paramiko/__init__.py b/paramiko/__init__.py
index afc62ee7..6bd8b38f 100644
--- a/paramiko/__init__.py
+++ b/paramiko/__init__.py
@@ -36,13 +36,13 @@ from paramiko.channel import (
ChannelStdinFile,
)
from paramiko.ssh_exception import (
- SSHException,
- PasswordRequiredException,
+ AuthenticationException,
BadAuthenticationType,
- ChannelException,
BadHostKeyException,
- AuthenticationException,
+ ChannelException,
+ PasswordRequiredException,
ProxyCommandFailure,
+ SSHException,
)
from paramiko.server import ServerInterface, SubsystemHandler, InteractiveQuery
from paramiko.rsakey import RSAKey
diff --git a/tests/test_util.py b/tests/test_util.py
index 0cc9b220..7849fec3 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -48,38 +48,38 @@ class UtilTest(unittest.TestCase):
verify that all the classes can be imported from paramiko.
"""
symbols = paramiko.__all__
- self.assertTrue("Transport" in symbols)
- self.assertTrue("SSHClient" in symbols)
- self.assertTrue("MissingHostKeyPolicy" in symbols)
+ self.assertTrue("Agent" in symbols)
+ self.assertTrue("AgentKey" in symbols)
+ self.assertTrue("AuthenticationException" in symbols)
self.assertTrue("AutoAddPolicy" in symbols)
- self.assertTrue("RejectPolicy" in symbols)
- self.assertTrue("WarningPolicy" in symbols)
- self.assertTrue("SecurityOptions" in symbols)
- self.assertTrue("SubsystemHandler" in symbols)
+ self.assertTrue("BadAuthenticationType" in symbols)
+ self.assertTrue("BufferedFile" in symbols)
self.assertTrue("Channel" in symbols)
- self.assertTrue("RSAKey" in symbols)
+ self.assertTrue("ChannelException" in symbols)
self.assertTrue("DSSKey" in symbols)
+ self.assertTrue("HostKeys" in symbols)
self.assertTrue("Message" in symbols)
- self.assertTrue("SSHException" in symbols)
- self.assertTrue("AuthenticationException" in symbols)
+ self.assertTrue("MissingHostKeyPolicy" in symbols)
self.assertTrue("PasswordRequiredException" in symbols)
- self.assertTrue("BadAuthenticationType" in symbols)
- self.assertTrue("ChannelException" in symbols)
+ self.assertTrue("RSAKey" in symbols)
+ self.assertTrue("RejectPolicy" in symbols)
self.assertTrue("SFTP" in symbols)
+ self.assertTrue("SFTPAttributes" in symbols)
+ self.assertTrue("SFTPClient" in symbols)
+ self.assertTrue("SFTPError" in symbols)
self.assertTrue("SFTPFile" in symbols)
self.assertTrue("SFTPHandle" in symbols)
- self.assertTrue("SFTPClient" in symbols)
self.assertTrue("SFTPServer" in symbols)
- self.assertTrue("SFTPError" in symbols)
- self.assertTrue("SFTPAttributes" in symbols)
self.assertTrue("SFTPServerInterface" in symbols)
- self.assertTrue("ServerInterface" in symbols)
- self.assertTrue("BufferedFile" in symbols)
- self.assertTrue("Agent" in symbols)
- self.assertTrue("AgentKey" in symbols)
- self.assertTrue("HostKeys" in symbols)
+ self.assertTrue("SSHClient" in symbols)
self.assertTrue("SSHConfig" in symbols)
self.assertTrue("SSHConfigDict" in symbols)
+ self.assertTrue("SSHException" in symbols)
+ self.assertTrue("SecurityOptions" in symbols)
+ self.assertTrue("ServerInterface" in symbols)
+ self.assertTrue("SubsystemHandler" in symbols)
+ self.assertTrue("Transport" in symbols)
+ self.assertTrue("WarningPolicy" in symbols)
self.assertTrue("util" in symbols)
def test_generate_key_bytes(self):