def _create_expectation_line(self, result, test_configuration):
     test_name = result.test_name()
     line = TestExpectationLine()
     line.name = test_name
     line.path = test_name
     line.matching_tests = [test_name]
     line.filename = ''
     if self._args.bug:
         line.bugs = ['crbug.com/%s' % self._args.bug]
     else:
         line.bugs = ['Bug(none)']
     line.expectations = result.actual_results().split()
     line.parsed_expectations = [
         TestExpectations.expectation_from_string(expectation)
         for expectation in line.expectations]
     line.specifiers = [test_configuration.version]
     line.matching_configurations = set([test_configuration])
     return line