def _ConvertUnusedExpectationsToStringList(unused_expectations):
  """Converts |unused_expectations| to a list of strings for reporting.

  Args:
    unused_expectations: A list of data_types.Expectation that didn't have any
        matching results.

  Returns:
    A list of strings, each one corresponding to an element in
    |unused_expectations|. Strings are in a format similar to what would be
    present as a line in an expectation file.
  """
  output_list = []
  for e in unused_expectations:
    output_list.append('[ %s ] %s [ %s ]' %
                       (' '.join(e.tags), e.test, ' '.join(e.expected_results)))
  return output_list