~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_logformats.py

  • Committer: John Arbash Meinel
  • Date: 2011-05-26 08:05:45 UTC
  • mfrom: (5916 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5917.
  • Revision ID: john@arbash-meinel.com-20110526080545-5tprxfczyj4bfk0o
Merge bzr.dev 5916 and make sure the right patch is applied.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
 
108
108
"""
109
109
        self.assertEqualDiff(expected, log)
 
110
 
 
111
    def test_logformat_line_wide(self):
 
112
        """Author field should get larger for column widths over 80"""
 
113
        wt = self.make_branch_and_tree('.')
 
114
        wt.commit('revision with a long author', committer='Person with' 
 
115
                  ' long name SENTINEL')
 
116
        log, err = self.run_bzr('log --line')
 
117
        self.assertNotContainsString(log, 'SENTINEL')
 
118
        self.overrideEnv('BZR_COLUMNS', '116')
 
119
        log, err = self.run_bzr('log --line')
 
120
        self.assertContainsString(log, 'SENT...')
 
121
        self.overrideEnv('BZR_COLUMNS', '0')
 
122
        log, err = self.run_bzr('log --line')
 
123
        self.assertContainsString(log, 'SENTINEL')
 
124