~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_basis_inventory.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from bzrlib.tests import TestCaseInTempDir
 
19
from bzrlib.tests import TestCaseWithTransport
20
20
from bzrlib.branch import Branch
21
21
from bzrlib.xml5 import serializer_v5
22
22
 
23
23
 
24
 
class TestBasisInventory(TestCaseInTempDir):
 
24
class TestBasisInventory(TestCaseWithTransport):
25
25
 
26
26
    def test_create(self):
27
27
        # Make sure the basis file is created by a commit
28
 
        b = Branch.initialize('.')
29
 
        t = b.working_tree()
 
28
        t = self.make_branch_and_tree('.')
 
29
        b = t.branch
30
30
        open('a', 'wb').write('a\n')
31
31
        t.add('a')
32
32
        t.commit('a', rev_id='r1')