Rev 2428: Python 2.4 compatability change for the new help see-also tests. in http://people.ubuntu.com/~robertc/baz2.0/integration
Robert Collins
robertc at robertcollins.net
Thu Apr 19 08:40:45 BST 2007
At http://people.ubuntu.com/~robertc/baz2.0/integration
------------------------------------------------------------
revno: 2428
revision-id: robertc at robertcollins.net-20070419074042-v84lrlszidihjhdy
parent: robertc at robertcollins.net-20070419071317-p1pem58mcxxwbg9j
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Thu 2007-04-19 17:40:42 +1000
message:
Python 2.4 compatability change for the new help see-also tests.
modified:
bzrlib/tests/test_help.py test_help.py-20070419045354-6q6rq15j9e2n5fna-1
=== modified file 'bzrlib/tests/test_help.py'
--- a/bzrlib/tests/test_help.py 2007-04-19 04:54:08 +0000
+++ b/bzrlib/tests/test_help.py 2007-04-19 07:40:42 +0000
@@ -35,12 +35,8 @@
cmd = cmd_WithSeeAlso()
helpfile = StringIO()
help.help_on_command_object(cmd, 'cmd_sample', helpfile)
- self.assertEqual('usage: bzr WithSeeAlso\n'
- '\n'
- 'A sample command.\n'
- '\n'
- 'Options:\n'
+ self.assertEndsWith(
+ helpfile.getvalue(),
' -h, --help show help message\n'
'\n'
- 'See also: bar, foo\n',
- helpfile.getvalue())
+ 'See also: bar, foo\n')
More information about the bazaar-commits
mailing list