testing/unexpected_passes_common/result_output_unittest.py
def testBugLimit(self):
    """Tests that only a certain number of bugs are allowed per line."""
    urls = [
        'crbug.com/1',
        'crbug.com/2',
        'crbug.com/3',
        'crbug.com/4',
        'crbug.com/5',
        'crbug.com/6',
    ]
    result_output._OutputUrlsForClDescription(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, 2, 3, 4, 5\n'
                                  'Bug: 6\n'))
Tests that only a certain number of bugs are allowed per line.
Tests that only a certain number of bugs are allowed per line.
Tests that only a certain number of bugs are allowed per line .
def testBugLimit(self):
    urls = [
        'crbug.com/1',
        'crbug.com/2',
        'crbug.com/3',
        'crbug.com/4',
        'crbug.com/5',
        'crbug.com/6',
    ]
    result_output._OutputUrlsForClDescription(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, 2, 3, 4, 5\n'
                                  'Bug: 6\n'))
def testBugLimit ( self ) : urls = [ 'crbug.com/1' , 'crbug.com/2' , 'crbug.com/3' , 'crbug.com/4' , 'crbug.com/5' , 'crbug.com/6' , ] result_output . _OutputUrlsForClDescription ( 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, 2, 3, 4, 5\n' 'Bug: 6\n' ) )
Tests that only a certain number of bugs are allowed per line.
Tests that only a certain number of bugs are allowed per line .
"""Tests that only a certain number of bugs are allowed per line."""
self