/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-11-29 18:41:01 UTC
  • mfrom: (2796.2.22 bzr.reconfigure)
  • Revision ID: pqm@pqm.ubuntu.com-20071129184101-u9506rihe4zbzyyz
bzr reconfigure can now convert to lightweight checkout

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        bzrdir.create_branch()
242
242
        bzrdir.open_branch()
243
243
 
 
244
    def test_destroy_repository(self):
 
245
        repo = self.make_repository('repository')
 
246
        bzrdir = repo.bzrdir
 
247
        try:
 
248
            bzrdir.destroy_repository()
 
249
        except (errors.UnsupportedOperation, errors.TransportNotPossible):
 
250
            raise TestNotApplicable('Format does not support destroying'
 
251
                                    ' repository')
 
252
        self.assertRaises(errors.NoRepositoryPresent, bzrdir.open_repository)
 
253
        bzrdir.create_repository()
 
254
        bzrdir.open_repository()
 
255
 
244
256
    def test_open_workingtree_raises_no_working_tree(self):
245
257
        """BzrDir.open_workingtree() should raise NoWorkingTree (rather than
246
258
        e.g. NotLocalUrl) if there is no working tree.