~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_inv.py

  • Committer: Samuel Bronson
  • Date: 2012-08-30 20:36:18 UTC
  • mto: (6015.57.3 2.4)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: naesten@gmail.com-20120830203618-y2dzw91nqpvpgxvx
Update INSTALL for switch to Python 2.6 and up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        wt.lock_tree_write()
31
31
        self.addCleanup(wt.unlock)
32
32
        self.assertEqual(len(wt.all_file_ids()), 1)
33
 
        with open('b1/a', 'wb') as f: f.write('a test\n')
 
33
        open('b1/a', 'wb').write('a test\n')
34
34
        wt.add('a')
35
35
        self.assertEqual(len(wt.all_file_ids()), 2)
36
36
        wt.flush() # workaround revert doing wt._write_inventory for now.
56
56
            inventory.InventoryFile('foo-id', 'foo', parent_id='bar-id')),
57
57
            (None, 'bar', 'bar-id', inventory.InventoryDirectory('bar-id',
58
58
            'bar', parent_id=root_id))])
59
 
        self.assertEqual('bar/foo', wt.id2path('foo-id'))
60
 
        self.assertEqual('bar', wt.id2path('bar-id'))
 
59
        self.assertEqual('bar/foo', wt.inventory.id2path('foo-id'))
 
60
        self.assertEqual('bar', wt.inventory.id2path('bar-id'))
61
61
 
62
62
    def test_remove(self):
63
63
        wt = self.make_branch_and_tree('.')