~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-12 01:34:46 UTC
  • mfrom: (5597.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110112013446-le2folid2nfkgncn
(vila) Accept 0 to mean no limit for BZR_COLUMNS (Neil
        Martinsen-Burrell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007, 2009, 2010 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
104
104
        self.assertEquals(dash_help, qmark_long)
105
105
        self.assertEquals(dash_help, qmark_cmds)
106
106
 
 
107
    def test_help_width_zero(self):
 
108
        self.overrideEnv('BZR_COLUMNS', '0')
 
109
        self.run_bzr('help commands')
 
110
 
107
111
    def test_hidden(self):
108
112
        help_commands = self.run_bzr('help commands')[0]
109
113
        help_hidden = self.run_bzr('help hidden-commands')[0]