~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_treebuilder.py

  • Committer: John Arbash Meinel
  • Date: 2007-06-07 22:31:44 UTC
  • mfrom: (2517 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2518.
  • Revision ID: john@arbash-meinel.com-20070607223144-u4oljlajcvq6by2n
[merge] bzr.dev 2517

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for the TreeBuilder helper class."""
19
19
 
20
 
from bzrlib import errors
 
20
from bzrlib import errors, tests
21
21
from bzrlib.memorytree import MemoryTree
22
22
from bzrlib.tests import TestCaseWithTransport
23
23
from bzrlib.treebuilder import TreeBuilder
48
48
        self.assertEqual(["lock_tree_write", "unlock"], tree._calls)
49
49
 
50
50
 
51
 
class TestTreeBuilder(TestCaseWithTransport):
 
51
class TestTreeBuilderMemoryTree(tests.TestCaseWithMemoryTransport):
52
52
    
53
53
    def test_create(self):
54
54
        builder = TreeBuilder()
92
92
        self.assertEqual('contents of bar/file\n',
93
93
            tree.get_file(tree.path2id('bar/file')).read())
94
94
        builder.finish_tree()
 
95