~ubuntu-branches/ubuntu/lucid/bzr/lucid-proposed

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2006-03-20 08:31:00 UTC
  • mfrom: (1.1.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060320083100-ovdi2ssuw0epcx8s
Tags: 0.8~200603200831-0ubuntu1
* Snapshot uploaded to Dapper at Martin Pool's request.

* Disable testsuite for upload.  Fakeroot and the testsuite don't
  play along.

Show diffs side-by-side

added added

removed removed

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