~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Andrew Bennetts
  • Date: 2011-03-24 00:13:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5739.
  • Revision ID: andrew.bennetts@canonical.com-20110324001310-5w56qjom53j091r3
Minor English tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005-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
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from cStringIO import StringIO
18
17
import errno
19
18
import inspect
20
19
import sys
95
94
class TestGetAlias(tests.TestCase):
96
95
 
97
96
    def _get_config(self, config_text):
98
 
        my_config = config.GlobalConfig()
99
 
        config_file = StringIO(config_text.encode('utf-8'))
100
 
        my_config._parser = my_config._get_parser(file=config_file)
 
97
        my_config = config.GlobalConfig.from_string(config_text)
101
98
        return my_config
102
99
 
103
100
    def test_simple(self):
346
343
        self.assertEqual(['called'], hook_calls)
347
344
        self.assertSubset(['foo', 'bar'], cmds)
348
345
 
 
346
 
349
347
class TestDeprecations(tests.TestCase):
350
348
 
351
349
    def test_shlex_split_unicode_deprecation(self):