/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 bzrlib/tests/test_commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-24 05:50:53 UTC
  • mfrom: (5250.1.2 non-standard-null-option)
  • Revision ID: pqm@pqm.ubuntu.com-20100524055053-98svu921jteiweaw
Fix the type of the recently introduced null option - it should have been
 global, not standard.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        c = self.get_command([option.Option('foo', hidden=False)])
80
80
        self.assertContainsRe(c.get_help_text(), '--foo')
81
81
 
 
82
    def test_no_help_init_failure(self):
 
83
        class cmd_foo(commands.Command):
 
84
            pass
 
85
        self.assertRaises(ValueError, cmd_foo)
 
86
 
82
87
 
83
88
class TestGetAlias(tests.TestCase):
84
89