~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_break_lock.py

  • Committer: Vincent Ladeuil
  • Date: 2010-06-23 08:19:28 UTC
  • mfrom: (5317 +trunk)
  • mto: (5247.1.11 first-try)
  • mto: This revision was merged to the branch mainline in revision 5326.
  • Revision ID: v.ladeuil+lp@free.fr-20100623081928-z9q18q30oo5as831
Merge bzr.dev into cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    )
26
26
from bzrlib.branch import Branch
27
27
from bzrlib.bzrdir import BzrDir
28
 
from bzrlib.tests.blackbox import ExternalBase
29
 
 
30
 
 
31
 
class TestBreakLock(ExternalBase):
 
28
from bzrlib.tests import TestCaseWithTransport
 
29
 
 
30
 
 
31
class TestBreakLock(TestCaseWithTransport):
32
32
 
33
33
    # General principal for break-lock: All the elements that might be locked
34
34
    # by a bzr operation on PATH, are candidates that break-lock may unlock.
93
93
        self.assertRaises(errors.LockBroken, self.master_branch.unlock)
94
94
 
95
95
 
96
 
class TestBreakLockOldBranch(ExternalBase):
 
96
class TestBreakLockOldBranch(TestCaseWithTransport):
97
97
 
98
98
    def test_break_lock_format_5_bzrdir(self):
99
99
        # break lock on a format 5 bzrdir should just return