434
435
tree_a = self.make_branch_and_tree('a')
435
436
rev_id = tree_a.commit('put some content in the branch')
436
437
# open the branch via a readonly transport
438
440
# sanity check that the test will be valid
439
441
self.assertRaises((errors.LockError, errors.TransportNotPossible),
440
442
source_branch.lock_write)