testing/unexpected_passes_common/result_output_unittest.py
def testSingleBugOverLineLimit(self):
    """Tests the behavior when a single bug by itself is over the line limit."""
    project_name = result_output.MAX_CHARACTERS_PER_CL_LINE * 'a'
    urls = [
        'crbug.com/%s/1' % project_name,
        'crbug.com/2',
    ]
    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: 2\n'
                                  'Bug: %s:1\n' % project_name))
Tests the behavior when a single bug by itself is over the line limit.
Tests the behavior when a single bug by itself is over the line limit.
Tests the behavior when a single bug by itself is over the line limit .
def testSingleBugOverLineLimit(self):
    project_name = result_output.MAX_CHARACTERS_PER_CL_LINE * 'a'
    urls = [
        'crbug.com/%s/1' % project_name,
        'crbug.com/2',
    ]
    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: 2\n'
                                  'Bug: %s:1\n' % project_name))
def testSingleBugOverLineLimit ( self ) : project_name = result_output . MAX_CHARACTERS_PER_CL_LINE * 'a' urls = [ 'crbug.com/%s/1' % project_name , 'crbug.com/2' , ] 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: 2\n' 'Bug: %s:1\n' % project_name ) )
Tests the behavior when a single bug by itself is over the line limit.
Tests the behavior when a single bug by itself is over the line limit .
"""Tests the behavior when a single bug by itself is over the line limit."""
self