~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Aaron Bentley
  • Date: 2007-08-29 05:30:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2765.
  • Revision ID: aaron.bentley@utoronto.ca-20070829053005-1x7fnhe3jx0c1ak5
Updates from review

Show diffs side-by-side

added added

removed removed

Lines of Context:
1359
1359
        mover.rename('a', 'q')
1360
1360
        self.failUnlessExists('q')
1361
1361
        self.failIfExists('a')
 
1362
        self.failUnlessExists('q/b')
 
1363
        self.failUnlessExists('c')
 
1364
        self.failUnlessExists('c/d')
1362
1365
 
1363
1366
    def test_pre_delete_rollback(self):
1364
1367
        self.build_tree(['a/'])
1371
1374
        self.failUnlessExists('a')
1372
1375
 
1373
1376
    def test_apply_deletions(self):
1374
 
        self.build_tree(['a/'])
 
1377
        self.build_tree(['a/', 'b/'])
1375
1378
        mover = _FileMover()
1376
1379
        mover.pre_delete('a', 'q')
 
1380
        mover.pre_delete('b', 'r')
1377
1381
        self.failUnlessExists('q')
 
1382
        self.failUnlessExists('r')
1378
1383
        self.failIfExists('a')
 
1384
        self.failIfExists('b')
1379
1385
        mover.apply_deletions()
1380
1386
        self.failIfExists('q')
 
1387
        self.failIfExists('r')
1381
1388
        self.failIfExists('a')
 
1389
        self.failIfExists('b')
1382
1390
 
1383
1391
    def test_file_mover_rollback(self):
1384
1392
        self.build_tree(['a/', 'a/b', 'c/', 'c/d/', 'c/e/'])