def METHOD_NAME(self):
    """Test if there is no host key."""
    # Disable logging to avoid output during test
    logging.disable(logging.ERROR)
    with self.assertRaises(paramiko.SSHException):
        with SshTransport(machine='localhost', timeout=30, load_system_host_keys=False):
            pass
    # Reset logging level
    logging.disable(logging.NOTSET)