Ejemplo n.º 1
0
 def test_closed_connection_sftp(self):
     with self.assertRaises(
             aiida.transports.transport.TransportInternalError):
         t = SshTransport(machine='localhost')
         t.listdir()
Ejemplo n.º 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()