~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

[merge] jam-integration 1527, including branch-formats, help text, misc bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import sys
21
21
 
22
22
from bzrlib.branch import Branch
23
 
import bzrlib.msgeditor
24
 
from bzrlib.tests import TestCaseInTempDir, TestSkipped
 
23
from bzrlib.msgeditor import make_commit_message_template
 
24
from bzrlib.tests import TestCaseWithTransport, TestSkipped
25
25
from bzrlib.trace import mutter
26
26
 
27
27
 
28
 
class MsgEditorTest(TestCaseInTempDir):
 
28
class MsgEditorTest(TestCaseWithTransport):
29
29
 
30
30
    def make_uncommitted_tree(self):
31
31
        """Build a branch with uncommitted unicode named changes in the cwd."""
32
 
        b = Branch.initialize(u'.')
33
 
        working_tree = b.working_tree()
 
32
        working_tree = self.make_branch_and_tree('.')
 
33
        b = working_tree.branch
34
34
        filename = u'hell\u00d8'
35
35
        try:
36
36
            self.build_tree_contents([(filename, 'contents of hello')])