~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_help.py

  • Committer: Robert Collins
  • Date: 2007-04-19 07:40:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2427.
  • Revision ID: robertc@robertcollins.net-20070419074042-v84lrlszidihjhdy
Python 2.4 compatability change for the new help see-also tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        cmd = cmd_WithSeeAlso()
36
36
        helpfile = StringIO()
37
37
        help.help_on_command_object(cmd, 'cmd_sample', helpfile)
38
 
        self.assertEqual('usage: bzr WithSeeAlso\n'
39
 
            '\n'
40
 
            'A sample command.\n'
41
 
            '\n'
42
 
            'Options:\n'
 
38
        self.assertEndsWith(
 
39
            helpfile.getvalue(),
43
40
            '  -h, --help  show help message\n'
44
41
            '\n'
45
 
            'See also: bar, foo\n',
46
 
            helpfile.getvalue())
 
42
            'See also: bar, foo\n')