/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

Merge bzr.dev

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
        from bzrlib.tests.test_diff import UnicodeFilename
 
249
        self.requireFeature(UnicodeFilename)
 
250
        if hasattr(self, 'info'):
 
251
            os.mkdir(self.info['directory'])
 
252
            os.chdir(self.info['directory'])
 
253
            msgeditor._create_temp_file_with_commit_template('infotext')
 
254
        else:
 
255
            raise TestNotApplicable('Test run elsewhere with non-ascii data.')
 
256
 
246
257
    def test__create_temp_file_with_empty_commit_template(self):
247
258
        # empty file
248
259
        create_file = msgeditor._create_temp_file_with_commit_template