~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_treebuilder.py

Tree builder tests do not need a working dir.

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