~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Martin Pool
  • Date: 2006-03-09 02:04:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1602.
  • Revision ID: mbp@sourcefrog.net-20060309020459-9909376bda89eb6f
Additional test that Branch5 uses lockdir properly

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        self.assertIsDirectory('.', t)
71
71
        self.assertIsDirectory('.bzr/branch', t)
72
72
        self.assertIsDirectory('.bzr/branch/lock', t)
73
 
        # branch.lock_read()
74
 
        # try:
75
 
        #     self.assertIsDirectory('.bzr/branch/lock/held', t)
76
 
        # finally:
77
 
        #     branch.unlock()
 
73
        branch.lock_write()
 
74
        self.assertIsDirectory('.bzr/branch/lock/held', t)
78
75
 
79
76
 
80
77
class SampleBranchFormat(bzrlib.branch.BranchFormat):