~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_basis_inventory.py

  • Committer: Martin Pool
  • Date: 2006-02-01 12:24:35 UTC
  • mfrom: (1534.4.32 branch-formats)
  • mto: This revision was merged to the branch mainline in revision 1553.
  • Revision ID: mbp@sourcefrog.net-20060201122435-53f3efb1b5749fe1
[merge] branch-formats branch, and reconcile changes

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')