~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Martin Pool
  • Date: 2005-06-24 09:09:02 UTC
  • Revision ID: mbp@sourcefrog.net-20050624090902-c3f18315ed76f9c6
- more tests of directory renames

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        self.check_inventory_shape(inv,
32
32
                                   ['dir', 'dir/sub', 'dir/sub/file'])
33
33
 
 
34
        b.rename_one('dir', 'newdir')
 
35
 
 
36
        self.check_inventory_shape(b.inventory,
 
37
                                   ['newdir', 'newdir/sub', 'newdir/sub/file'])
 
38
 
 
39
        b.rename_one('newdir/sub', 'newdir/newsub')
 
40
        self.check_inventory_shape(b.inventory,
 
41
                                   ['newdir', 'newdir/newsub',
 
42
                                    'newdir/newsub/file'])
 
43
 
34
44
        
35
45
 
36
46