/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: Aaron Bentley
  • Date: 2007-11-27 19:37:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3052.
  • Revision ID: abentley@panoramicfeedback.com-20071127193736-fjqqz482w0a6400o
SupportĀ reconfigureĀ --lightweight-checkout

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        bzrdir.create_branch()
180
180
        bzrdir.open_branch()
181
181
 
 
182
    def test_destroy_repository(self):
 
183
        repo = self.make_repository('repository')
 
184
        bzrdir = repo.bzrdir
 
185
        try:
 
186
            bzrdir.destroy_repository()
 
187
        except (errors.UnsupportedOperation, errors.TransportNotPossible):
 
188
            raise TestNotApplicable('Format does not support destroying'
 
189
                                    ' repository')
 
190
        self.assertRaises(errors.NoRepositoryPresent, bzrdir.open_repository)
 
191
        bzrdir.create_repository()
 
192
        bzrdir.open_repository()
 
193
 
182
194
    def test_open_workingtree_raises_no_working_tree(self):
183
195
        """BzrDir.open_workingtree() should raise NoWorkingTree (rather than
184
196
        e.g. NotLocalUrl) if there is no working tree.