/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-26 04:49:43 UTC
  • mfrom: (2867.1.1 ianc-integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20070926044943-flj37wmwhmd0l3f1
code clean-ups for bzrdir.py (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1370
1370
        self.failIf(transport.has('.bzr'))
1371
1371
        self.failUnless(transport.has('.bzr.retired.1'))
1372
1372
 
 
1373
    def test_retire_bzrdir_limited(self):
 
1374
        bd = self.make_bzrdir('.')
 
1375
        transport = bd.root_transport
 
1376
        # must not overwrite existing directories
 
1377
        self.build_tree(['.bzr.retired.0/', '.bzr.retired.0/junk',],
 
1378
            transport=transport)
 
1379
        self.failUnless(transport.has('.bzr'))
 
1380
        self.assertRaises((errors.FileExists, errors.DirectoryNotEmpty),
 
1381
            bd.retire_bzrdir, limit=0) 
 
1382
 
 
1383
 
1373
1384
class TestBreakLock(TestCaseWithBzrDir):
1374
1385
 
1375
1386
    def setUp(self):