testing/unexpected_passes_common/result_output_unittest.py
def testOrphanedBugs(self):
    """Tests that orphaned bugs are output properly alongside affected ones."""
    urls = [
        'crbug.com/1',
        'crbug.com/2',
        'crbug.com/3',
    ]
    orphaned_urls = ['crbug.com/2']
    result_output._OutputUrlsForClDescription(urls, orphaned_urls,
                                              self._file_handle)
    self._file_handle.close()
    with open(self._filepath) as f:
      self.assertEqual(f.read(), ('Affected bugs for CL description:\n'
                                  'Bug: 1, 3\n'
                                  'Fixed: 2\n'))
Tests that orphaned bugs are output properly alongside affected ones.
Tests that orphaned bugs are output properly alongside affected ones.
Tests that orphaned bugs are output properly alongside affected ones .
def testOrphanedBugs(self):
    urls = [
        'crbug.com/1',
        'crbug.com/2',
        'crbug.com/3',
    ]
    orphaned_urls = ['crbug.com/2']
    result_output._OutputUrlsForClDescription(urls, orphaned_urls,
                                              self._file_handle)
    self._file_handle.close()
    with open(self._filepath) as f:
      self.assertEqual(f.read(), ('Affected bugs for CL description:\n'
                                  'Bug: 1, 3\n'
                                  'Fixed: 2\n'))
def testOrphanedBugs ( self ) : urls = [ 'crbug.com/1' , 'crbug.com/2' , 'crbug.com/3' , ] orphaned_urls = [ 'crbug.com/2' ] result_output . _OutputUrlsForClDescription ( urls , orphaned_urls , self . _file_handle ) self . _file_handle . close ( ) with open ( self . _filepath ) as f : self . assertEqual ( f . read ( ) , ( 'Affected bugs for CL description:\n' 'Bug: 1, 3\n' 'Fixed: 2\n' ) )
Tests that orphaned bugs are output properly alongside affected ones.
Tests that orphaned bugs are output properly alongside affected ones .
"""Tests that orphaned bugs are output properly alongside affected ones."""
self