~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Vincent Ladeuil
  • Date: 2010-05-14 14:29:28 UTC
  • mto: (5234.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5235.
  • Revision ID: v.ladeuil+lp@free.fr-20100514142928-nlj2iw6oeszg9gpi
Fixed as per jam's review :)

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