~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-06-15 12:03:59 UTC
  • mfrom: (4119.3.16 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090615120359-3a9650kr76j1jyf2
(robertc) Make core command lookup fully hookable and extensible.
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    )
30
30
 
31
31
 
 
32
class TestHelp(tests.TestCase):
 
33
 
 
34
    def setUp(self):
 
35
        tests.TestCase.setUp(self)
 
36
        commands.install_bzr_command_hooks()
 
37
 
 
38
 
32
39
class TestCommandHelp(tests.TestCase):
33
40
    """Tests for help on commands."""
34
41
 
274
281
            '  Blah blah blah.\n\n')
275
282
 
276
283
 
277
 
class TestRegisteredTopic(tests.TestCase):
 
284
class TestRegisteredTopic(TestHelp):
278
285
    """Tests for the RegisteredTopic class."""
279
286
 
280
287
    def test_contruct(self):
313
320
        self.assertEqual('baz', topic.get_help_topic())
314
321
 
315
322
 
316
 
class TestTopicIndex(tests.TestCase):
 
323
class TestTopicIndex(TestHelp):
317
324
    """Tests for the HelpTopicIndex class."""
318
325
 
319
326
    def test_default_constructable(self):
346
353
        self.assertEqual('', index.prefix)
347
354
 
348
355
 
349
 
class TestCommandIndex(tests.TestCase):
 
356
class TestCommandIndex(TestHelp):
350
357
    """Tests for the HelpCommandIndex class."""
351
358
 
352
359
    def test_default_constructable(self):