~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2012-09-19 07:58:27 UTC
  • mfrom: (6437.63.9 2.5)
  • mto: This revision was merged to the branch mainline in revision 6563.
  • Revision ID: john@arbash-meinel.com-20120919075827-36b2b042kiaps0d3
Merge bzr-2.5.2 into trunk to get the fixes for ConnectionReset.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007, 2009-2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2009, 2010, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
103
103
        long_help  = self.run_bzr('help --long')[0]
104
104
        qmark_long = self.run_bzr('? --long')[0]
105
105
        qmark_cmds = self.run_bzr('? commands')[0]
106
 
        self.assertEqual(dash_help, commands)
107
 
        self.assertEqual(dash_help, long_help)
108
 
        self.assertEqual(dash_help, qmark_long)
109
 
        self.assertEqual(dash_help, qmark_cmds)
 
106
        self.assertEquals(dash_help, commands)
 
107
        self.assertEquals(dash_help, long_help)
 
108
        self.assertEquals(dash_help, qmark_long)
 
109
        self.assertEquals(dash_help, qmark_cmds)
110
110
 
111
111
    def test_help_width_zero(self):
112
112
        self.overrideEnv('BZR_COLUMNS', '0')
138
138
    def test_help_detail(self):
139
139
        dash_h  = self.run_bzr('diff -h')[0]
140
140
        help_x  = self.run_bzr('help diff')[0]
141
 
        self.assertEqual(dash_h, help_x)
 
141
        self.assertEquals(dash_h, help_x)
142
142
        self.assertContainsRe(help_x, "Purpose:")
143
143
        self.assertContainsRe(help_x, "Usage:")
144
144
        self.assertContainsRe(help_x, "Options:")
160
160
    def test_help_help(self):
161
161
        help = self.run_bzr('help help')[0]
162
162
        qmark = self.run_bzr('? ?')[0]
163
 
        self.assertEqual(help, qmark)
 
163
        self.assertEquals(help, qmark)
164
164
        for line in help.split('\n'):
165
165
            if '--long' in line:
166
166
                self.assertContainsRe(line,