/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/test_remote.py

(jelmer) Add HPSS call ``BzrDir.destroy_repository``. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
485
485
        self.assertFinished(client)
486
486
 
487
487
 
 
488
class TestBzrDirDestroyRepository(TestRemote):
 
489
 
 
490
    def test_destroy_repository(self):
 
491
        transport = self.get_transport('quack')
 
492
        client = FakeClient(transport.base)
 
493
        client.add_expected_call(
 
494
            'BzrDir.destroy_repository', ('quack/',),
 
495
            'success', ('ok',)),
 
496
        a_bzrdir = RemoteBzrDir(transport, RemoteBzrDirFormat(),
 
497
            _client=client)
 
498
        a_bzrdir.destroy_repository()
 
499
        self.assertFinished(client)
 
500
 
 
501
 
488
502
class TestBzrDirOpen(TestRemote):
489
503
 
490
504
    def make_fake_client_and_transport(self, path='quack'):