/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_help.py

  • Committer: Ian Clatworthy
  • Date: 2009-02-06 08:06:04 UTC
  • mto: (4157.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4158.
  • Revision ID: ian.clatworthy@canonical.com-20090206080604-ylrt5rwf5193vfr8
make help on commands concise by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        self.assertTrue('rocks' in hidden)
113
113
        self.assertTrue('rocks' not in commands)
114
114
 
115
 
    def test_help_detail(self):
 
115
    def test_help_concise(self):
116
116
        dash_h  = self.run_bzr('commit -h')[0]
117
117
        help_x  = self.run_bzr('help commit')[0]
118
 
        qmark_x = self.run_bzr('help commit')[0]
119
 
        self.assertEquals(dash_h, help_x)
120
 
        self.assertEquals(dash_h, qmark_x)
 
118
        self.assertEqualDiff(dash_h, help_x)
 
119
 
 
120
    def test_help_detail(self):
 
121
        dash_h  = self.run_bzr('commit -h -v')[0]
 
122
        help_x  = self.run_bzr('help -v commit')[0]
 
123
        self.assertEqualDiff(dash_h, help_x)
121
124
 
122
125
    def test_help_help(self):
123
126
        help = self.run_bzr('help help')[0]