def _FormatHeaders(headers):
  """Formats HTTP headers.

  @type headers: sequence of strings
  @rtype: string

  """
  assert compat.all(": " in header for header in headers)
  return "\n".join(headers)
dataset/ETHPy150Open ganeti/ganeti/lib/rapi/testutils.py/_FormatHeaders/original