~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_locking.py

  • Committer: Andrew Bennetts
  • Date: 2008-09-08 12:59:00 UTC
  • mfrom: (3695 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080908125900-8ywtsr7jqyyatjz0
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
515
515
            branch.repository.unlock()
516
516
        finally:
517
517
            branch.unlock()
 
518
 
 
519
    def test_lock_and_unlock_leaves_repo_unlocked(self):
 
520
        branch = self.make_branch('b')
 
521
        branch.lock_write()
 
522
        branch.unlock()
 
523
        self.assertRaises(errors.LockNotHeld, branch.repository.unlock)
 
524