Example #1
0
 def test_closed_connection_ssh(self):
     with self.assertRaises(
             aiida.transports.transport.TransportInternalError):
         t = SshTransport(machine='localhost')
         t._exec_command_internal('ls')
Example #2
0
 def test_closed_connection_ssh(self):
     """Test calling command on a closed connection."""
     with self.assertRaises(TransportInternalError):
         transport = SshTransport(machine='localhost')
         transport._exec_command_internal('ls')  # pylint: disable=protected-access