testing/unexpected_passes_common/result_output_unittest.py
def testRegularData(self):
    """Tests that everything functions when regular data is provided."""
    unmatched_results = {
        'builder': [
            data_types.Result('foo', ['win', 'intel'], 'Failure', 'step_name',
                              'build_id')
        ],
    }
    # TODO(crbug.com/1198237): Hard-code the tag string once only Python 3 is
    # supported.
    expected_output = {
        'foo': {
            'builder': {
                'step_name': [
                    'Got "Failure" on http://ci.chromium.org/b/build_id with '
                    'tags [%s]' % ' '.join(set(['win', 'intel'])),
                ]
            }
        }
    }
    output = result_output._ConvertUnmatchedResultsToStringDict(
        unmatched_results)
    self.assertEqual(output, expected_output)
Tests that everything functions when regular data is provided.
Tests that everything functions when regular data is provided.
Tests that everything functions when regular data is provided .
def testRegularData(self):
    unmatched_results = {
        'builder': [
            data_types.Result('foo', ['win', 'intel'], 'Failure', 'step_name',
                              'build_id')
        ],
    }
    expected_output = {
        'foo': {
            'builder': {
                'step_name': [
                    'Got "Failure" on http://ci.chromium.org/b/build_id with '
                    'tags [%s]' % ' '.join(set(['win', 'intel'])),
                ]
            }
        }
    }
    output = result_output._ConvertUnmatchedResultsToStringDict(
        unmatched_results)
    self.assertEqual(output, expected_output)
def testRegularData ( self ) : unmatched_results = { 'builder' : [ data_types . Result ( 'foo' , [ 'win' , 'intel' ] , 'Failure' , 'step_name' , 'build_id' ) ] , } expected_output = { 'foo' : { 'builder' : { 'step_name' : [ 'Got "Failure" on http://ci.chromium.org/b/build_id with ' 'tags [%s]' % ' ' . join ( set ( [ 'win' , 'intel' ] ) ) , ] } } } output = result_output . _ConvertUnmatchedResultsToStringDict ( unmatched_results ) self . assertEqual ( output , expected_output )
Tests that everything functions when regular data is provided.
Tests that everything functions when regular data is provided .
"""Tests that everything functions when regular data is provided.""" # TODO(crbug.com/1198237): Hard-code the tag string once only Python 3 is # supported.
self