~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-22 20:17:22 UTC
  • mfrom: (3004.1.10 84043)
  • Revision ID: pqm@pqm.ubuntu.com-20071122201722-4l5bgljqn7qdux7f
commit now can invoke an external editor in a non-ascii directory.  (Watkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
from bzrlib.tests import (
36
36
    probe_bad_non_ascii,
37
37
    TestCaseWithTransport,
 
38
    TestNotApplicable,
38
39
    TestSkipped,
39
40
    )
40
41
from bzrlib.trace import mutter
243
244
                                    'infotext'])
244
245
        self.assertFileEqual(expected, msgfilename)
245
246
 
 
247
    def test__create_temp_file_with_commit_template_in_unicode_dir(self):
 
248
        if hasattr(self, 'info'):
 
249
            os.mkdir(self.info['directory'])
 
250
            os.chdir(self.info['directory'])
 
251
            msgeditor._create_temp_file_with_commit_template('infotext')
 
252
        else:
 
253
            raise TestNotApplicable('Test run elsewhere with non-ascii data.')
 
254
 
246
255
    def test__create_temp_file_with_empty_commit_template(self):
247
256
        # empty file
248
257
        create_file = msgeditor._create_temp_file_with_commit_template