~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-01-30 06:23:50 UTC
  • mfrom: (1534.1.17 integration)
  • Revision ID: mbp@sourcefrog.net-20060130062350-d6f25277ddcdfd79
[merge] robert's integration of much recent work

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
    def test_create(self):
27
27
        # Make sure the basis file is created by a commit
28
 
        b = Branch.initialize(u'.')
 
28
        b = Branch.initialize('.')
29
29
        t = b.working_tree()
30
30
        open('a', 'wb').write('a\n')
31
31
        t.add('a')
37
37
        basis_inv = serializer_v5.read_inventory_from_string(basis_inv_txt)
38
38
        #self.assertEquals('r1', basis_inv.revision_id)
39
39
        
40
 
        store_inv = b.get_inventory('r1')
 
40
        store_inv = b.repository.get_inventory('r1')
41
41
        self.assertEquals(store_inv._byid, basis_inv._byid)
42
42
 
43
43
        open('b', 'wb').write('b\n')
49
49
 
50
50
        basis_inv_txt = t.read_basis_inventory('r2')
51
51
        basis_inv = serializer_v5.read_inventory_from_string(basis_inv_txt)
52
 
        store_inv = b.get_inventory('r2')
 
52
        store_inv = b.repository.get_inventory('r2')
53
53
 
54
54
        self.assertEquals(store_inv._byid, basis_inv._byid)
55
55