testing/unexpected_passes_common/result_output_unittest.py
def testOutput(self):
    """Tests that the output is correct."""
    urls = [
        'https://crbug.com/1234',
        'https://crbug.com/angleproject/1234',
        'http://crbug.com/2345',
        'crbug.com/3456',
    ]
    orphaned_urls = ['https://crbug.com/1234', 'crbug.com/3456']
    result_output._OutputAffectedUrls(urls, orphaned_urls, self._file_handle)
    self._file_handle.close()
    with open(self._filepath) as f:
      self.assertEqual(f.read(), ('Affected bugs: '
                                  'https://crbug.com/1234 '
                                  'https://crbug.com/angleproject/1234 '
                                  'http://crbug.com/2345 '
                                  'https://crbug.com/3456\n'
                                  'Closable bugs: '
                                  'https://crbug.com/1234 '
                                  'https://crbug.com/3456\n'))
Tests that the output is correct.
Tests that the output is correct.
Tests that the output is correct .
def testOutput(self):
    urls = [
        'https://crbug.com/1234',
        'https://crbug.com/angleproject/1234',
        'http://crbug.com/2345',
        'crbug.com/3456',
    ]
    orphaned_urls = ['https://crbug.com/1234', 'crbug.com/3456']
    result_output._OutputAffectedUrls(urls, orphaned_urls, self._file_handle)
    self._file_handle.close()
    with open(self._filepath) as f:
      self.assertEqual(f.read(), ('Affected bugs: '
                                  'https://crbug.com/1234 '
                                  'https://crbug.com/angleproject/1234 '
                                  'http://crbug.com/2345 '
                                  'https://crbug.com/3456\n'
                                  'Closable bugs: '
                                  'https://crbug.com/1234 '
                                  'https://crbug.com/3456\n'))
def testOutput ( self ) : urls = [ 'https://crbug.com/1234' , 'https://crbug.com/angleproject/1234' , 'http://crbug.com/2345' , 'crbug.com/3456' , ] orphaned_urls = [ 'https://crbug.com/1234' , 'crbug.com/3456' ] result_output . _OutputAffectedUrls ( urls , orphaned_urls , self . _file_handle ) self . _file_handle . close ( ) with open ( self . _filepath ) as f : self . assertEqual ( f . read ( ) , ( 'Affected bugs: ' 'https://crbug.com/1234 ' 'https://crbug.com/angleproject/1234 ' 'http://crbug.com/2345 ' 'https://crbug.com/3456\n' 'Closable bugs: ' 'https://crbug.com/1234 ' 'https://crbug.com/3456\n' ) )
Tests that the output is correct.
Tests that the output is correct .
"""Tests that the output is correct."""
self