def test_closed_connection_sftp(self): with self.assertRaises( aiida.transports.transport.TransportInternalError): t = SshTransport(machine='localhost') t.listdir()
def test_closed_connection_sftp(self): """Test calling sftp command on a closed connection.""" with self.assertRaises(TransportInternalError): transport = SshTransport(machine='localhost') transport.listdir()