~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-02-29 01:13:00 UTC
  • mfrom: (3231.2.3 bug.195560)
  • Revision ID: pqm@pqm.ubuntu.com-20080229011300-p50it0si2y8mbv0d
(James Westby) Make version-info --custom imply --all. (#195560)

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        wt = self.make_branch_and_tree('branch')
140
140
        out, err = self.run_bzr('version-info --custom', retcode=3)
141
141
        self.assertContainsRe(err, r'ERROR: No template specified\.')
 
142
 
 
143
    def test_custom_implies_all(self):
 
144
        self.create_tree()
 
145
        out, err = self.run_bzr('version-info --custom --template='
 
146
            '"{revno} {branch_nick} {clean}\n" branch')
 
147
        self.assertEqual("2 branch 1\n", out)
 
148
        self.assertEqual("", err)
 
149
        self.build_tree_contents([('branch/c', 'now unclean\n')])
 
150
        out, err = self.run_bzr('version-info --custom --template='
 
151
            '"{revno} {branch_nick} {clean}\n" branch')
 
152
        self.assertEqual("2 branch 0\n", out)
 
153
        self.assertEqual("", err)