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