Some basic unittesting for the sshconnection.
TestSSHConnection([methodName]) | Tests the SSHConnection |
TestSSHConnection.test_constructor() | Does the constructor’s signature match what is expected? |
TestSSHConnection.test_client() | Does the connection build the SSHClient as expected? |
TestSSHConnection.test_sudo() | Does the connection make the proper calls to issue a sudo command? |
TestSSHConnection.test_call() | Does the call act the same as paramiko’s exec_command? |
TestSSHConnection.test_exec_command() | Is this the same thing as the call? |
TestSSHConnection.test_getattr() | Does the getattr call the client correctly? |
TestSSHConnection.test_lock() | Does the connection return the same lock to all users? |
TestSSHConnection.test_close() | Does it close the connection and re-set it to None? |