~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-03-01 09:58:53 UTC
  • mfrom: (5064.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100301095853-c1ffluypw71hgtgc
(vila for doxx) Deprecate commands.shlex_split_unicode

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    config,
25
25
    errors,
26
26
    option,
 
27
    symbol_versioning,
27
28
    tests,
28
29
    )
29
30
from bzrlib.commands import display_command
336
337
        cmds = list(commands.all_command_names())
337
338
        self.assertEqual(['called'], hook_calls)
338
339
        self.assertSubset(['foo', 'bar'], cmds)
 
340
 
 
341
class TestDeprecations(tests.TestCase):
 
342
 
 
343
    def test_shlex_split_unicode_deprecation(self):
 
344
        res = self.applyDeprecated(
 
345
                symbol_versioning.deprecated_in((2, 2, 0)),
 
346
                commands.shlex_split_unicode, 'whatever')