~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-27 06:47:50 UTC
  • mfrom: (4294.2.12 push.roundtrips)
  • Revision ID: pqm@pqm.ubuntu.com-20090427064750-e9obd6h83omt86ps
(robertc) Reduce roundtrips needed to push a new branch by coalescing
        many steps of the initialisation process. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
        # A child of a transport in jail_info is allowed
200
200
        _pre_open_hook(t.clone('child'))
201
201
        # A parent is not allowed
202
 
        self.assertRaises(errors.BzrError, _pre_open_hook, t.clone('..'))
 
202
        self.assertRaises(errors.JailBreak, _pre_open_hook, t.clone('..'))
203
203
        # A completely unrelated transport is not allowed
204
204
        self.assertRaises(
205
 
            errors.BzrError, _pre_open_hook, get_transport('http://host/'))
 
205
            errors.JailBreak, _pre_open_hook, get_transport('http://host/'))
206
206
 
207
207
    def test_open_bzrdir_in_non_main_thread(self):
208
208
        """Opening a bzrdir in a non-main thread should work ok.