/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/test_options.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-15 23:52:31 UTC
  • mfrom: (7336.1.1 patch-strip-non-int)
  • Revision ID: breezy.the.bot@gmail.com-20190615235231-2gf4gcxgvk8ckxua
Print sensible error message when an invalid argument is specified for an option.

Merged from https://code.launchpad.net/~jelmer/brz/patch-strip-non-int/+merge/368870

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
                          ['--number'])
115
115
        self.assertRaises(errors.BzrCommandError, self.parse, options,
116
116
                          ['--no-number'])
 
117
        self.assertRaises(errors.BzrCommandError, self.parse, options,
 
118
                          ['--number', 'a'])
117
119
 
118
120
    def test_is_hidden(self):
119
121
        self.assertTrue(option.Option('foo', hidden=True).is_hidden('foo'))