~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Robert Collins
  • Date: 2009-06-15 10:22:08 UTC
  • mto: This revision was merged to the branch mainline in revision 4441.
  • Revision ID: robertc@robertcollins.net-20090615102208-35q3sg050vbxd32e
And fix tests for bzr help.

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