~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-09-01 08:02:42 UTC
  • mfrom: (5390.3.3 faster-revert-593560)
  • Revision ID: pqm@pqm.ubuntu.com-20100901080242-esg62ody4frwmy66
(spiv) Avoid repeatedly calling self.target.all_file_ids() in
 InterTree.iter_changes. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
class TestGetAlias(tests.TestCase):
96
96
 
97
97
    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)
 
98
        my_config = config.GlobalConfig.from_string(config_text)
101
99
        return my_config
102
100
 
103
101
    def test_simple(self):
346
344
        self.assertEqual(['called'], hook_calls)
347
345
        self.assertSubset(['foo', 'bar'], cmds)
348
346
 
 
347
 
349
348
class TestDeprecations(tests.TestCase):
350
349
 
351
350
    def test_shlex_split_unicode_deprecation(self):