def test_ref_format(self):
    """Tests whether the references are returned as expected."""
    input_path = self._get_abs_path("sample/dev_sample.jsonl")
    references = self._format_refs(input_path)
    final_example = ("the nashville (2012 tv series) premiered on october 10, "
                     "2012 had 8.93 million viewers.")
    # Ensure that the final example is correct.
    assert references[-1][-1] == final_example
Tests whether the references are returned as expected.
language/totto/eval_pipeline_test.py