~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Vincent Ladeuil
  • Date: 2011-06-27 15:08:26 UTC
  • mto: (5993.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5994.
  • Revision ID: v.ladeuil+lp@free.fr-20110627150826-lfdrvg65lqzn33f9
Fix test failures and make sure we don't rely on a default translation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
 
321
321
    def setUp(self):
322
322
        super(TestCommandHelpI18n, self).setUp()
323
 
        self.overrideAttr(i18n, '_translation', ZzzTranslationsForDoc())
 
323
        self.overrideAttr(i18n, '_translations', ZzzTranslationsForDoc())
324
324
 
325
325
    def assertCmdHelp(self, expected, cmd):
326
326
        self.assertEqualDiff(textwrap.dedent(expected), cmd.get_help_text())
334
334
            }}zz{{:Usage:   bzr WithSeeAlso
335
335
            }}
336
336
            zz{{:Options:
337
 
              --usage        zz{{Show usage message and options.}}
338
 
              -v, --verbose  zz{{Display more information.}}
339
 
              -q, --quiet    zz{{Only display errors and warnings.}}
340
 
              -h, --help     zz{{Show help message.}}
 
337
              --usage        Show usage message and options.
 
338
              -v, --verbose  Display more information.
 
339
              -q, --quiet    Only display errors and warnings.
 
340
              -h, --help     Show help message.
341
341
            }}
342
342
            zz{{:See also: bar, foo}}
343
343
            ''',
352
352
            }}zz{{:Usage:   bzr Demo
353
353
            }}
354
354
            zz{{:Options:
355
 
              --usage        zz{{Show usage message and options.}}
356
 
              -v, --verbose  zz{{Display more information.}}
357
 
              -q, --quiet    zz{{Only display errors and warnings.}}
358
 
              -h, --help     zz{{Show help message.}}
 
355
              --usage        Show usage message and options.
 
356
              -v, --verbose  Display more information.
 
357
              -q, --quiet    Only display errors and warnings.
 
358
              -h, --help     Show help message.
359
359
            }}
360
360
            ''',
361
361
                           cmd_Demo())
414
414
            }}zz{{:Usage:   bzr Demo
415
415
            }}
416
416
            zz{{:Options:
417
 
              --usage        zz{{Show usage message and options.}}
418
 
              -v, --verbose  zz{{Display more information.}}
419
 
              -q, --quiet    zz{{Only display errors and warnings.}}
420
 
              -h, --help     zz{{Show help message.}}
 
417
              --usage        Show usage message and options.
 
418
              -v, --verbose  Display more information.
 
419
              -q, --quiet    Only display errors and warnings.
 
420
              -h, --help     Show help message.
421
421
            }}
422
422
            Description:
423
423
              zz{{zz{{Blah blah blah.}}
457
457
 
458
458
            }}
459
459
            zz{{:Options:
460
 
              --usage        zz{{Show usage message and options.}}
461
 
              -v, --verbose  zz{{Display more information.}}
462
 
              -q, --quiet    zz{{Only display errors and warnings.}}
463
 
              -h, --help     zz{{Show help message.}}
 
460
              --usage        Show usage message and options.
 
461
              -v, --verbose  Display more information.
 
462
              -q, --quiet    Only display errors and warnings.
 
463
              -h, --help     Show help message.
464
464
            }}
465
465
            Description:
466
466
              zz{{zz{{Blah blah blah.}}