~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-27 21:25:21 UTC
  • mto: (6449.2.3 config-option-registry)
  • mto: This revision was merged to the branch mainline in revision 6453.
  • Revision ID: jelmer@samba.org-20120127212521-43lrad6lk7strjuz
MoarĀ tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2513
2513
            'The following values are supported:\n'
2514
2514
            ' dunno - some other option\n'
2515
2515
            ' someval - some option\n',
2516
 
            opt.generate_help())
 
2516
            opt.help)
 
2517
 
 
2518
    def test_get_help_text(self):
 
2519
        registry = _mod_registry.Registry()
 
2520
        registry.register("someval", 1234, help="some option")
 
2521
        registry.register("dunno", 1234, help="some other option")
 
2522
        opt = self.get_option(registry)
 
2523
        self.assertEquals(
 
2524
            'A registry option.\n'
 
2525
            '\n'
 
2526
            'The following values are supported:\n'
 
2527
            ' dunno - some other option\n'
 
2528
            ' someval - some option\n',
 
2529
            opt.get_help_text())
2517
2530
 
2518
2531
 
2519
2532
class TestOptionRegistry(tests.TestCase):