~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Martin Pool
  • Date: 2009-06-19 09:06:56 UTC
  • mfrom: (4463 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4464.
  • Revision ID: mbp@sourcefrog.net-20090619090656-d5weqeecyscv8kqp
merge news

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):