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