446
446
tree_a = self.make_branch_and_tree('a')
447
447
rev_id = tree_a.commit('put some content in the branch')
448
448
# open the branch via a readonly transport
450
454
# sanity check that the test will be valid
451
455
self.assertRaises((errors.LockError, errors.TransportNotPossible),
452
456
source_branch.lock_write)