~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-06 16:38:04 UTC
  • mfrom: (3207.1.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080206163804-6zyjbbfpsm8txfdm
(Lukas) give a better error when using version-info --custom without
        --template

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        txt = self.run_bzr('version-info --format python branch')[0]
135
135
 
136
136
        self.assertContainsRe(txt, 'version_info = {')
 
137
 
 
138
    def test_custom_without_template(self):
 
139
        wt = self.make_branch_and_tree('branch')
 
140
        out, err = self.run_bzr('version-info --custom', retcode=3)
 
141
        self.assertContainsRe(err, r'ERROR: No template specified\.')