/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        # Create a config file with some useful variables
37
37
        conf_path = config.config_filename()
38
38
        if os.path.isfile(conf_path):
39
 
                # Something is wrong in environment,
40
 
                # we risk overwriting users config
41
 
                self.fail("%s exists" % conf_path)
 
39
            # Something is wrong in environment,
 
40
            # we risk overwriting users config
 
41
            self.fail("%s exists" % conf_path)
42
42
 
43
43
        config.ensure_config_dir_exists()
44
44
        f = open(conf_path, 'wb')
96
96
        # from http://launchpad.net/bugs/29582/
97
97
        wt = self.make_branch_and_tree('.')
98
98
        wt.commit('first revision', timestamp=1236045060,
99
 
                  timezone=0) # Aka UTC
 
99
                  timezone=0)  # Aka UTC
100
100
 
101
101
        log, err = self.run_bzr(['log', '--log-format', 'gnu-changelog',
102
102
                                 '--timezone=utc'])
111
111
    def test_logformat_line_wide(self):
112
112
        """Author field should get larger for column widths over 80"""
113
113
        wt = self.make_branch_and_tree('.')
114
 
        wt.commit('revision with a long author', committer='Person with' 
 
114
        wt.commit('revision with a long author', committer='Person with'
115
115
                  ' long name SENTINEL')
116
116
        log, err = self.run_bzr('log --line')
117
117
        self.assertNotContainsString(log, 'SENTINEL')
121
121
        self.overrideEnv('BRZ_COLUMNS', '0')
122
122
        log, err = self.run_bzr('log --line')
123
123
        self.assertContainsString(log, 'SENTINEL')
124