~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_lock/test_lock.py

  • Committer: Vincent Ladeuil
  • Date: 2009-07-15 07:32:26 UTC
  • mfrom: (4536 +trunk)
  • mto: (4536.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4537.
  • Revision ID: v.ladeuil+lp@free.fr-20090715073226-a7ylxd6ctbzeu0o6
Merge trunk resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    osutils,
22
22
    )
23
23
 
 
24
from bzrlib.tests import UnicodeFilenameFeature
24
25
from bzrlib.tests.per_lock import TestCaseWithLock
25
26
 
26
27
 
160
161
                b_lock.unlock()
161
162
            if c_lock is not None:
162
163
                c_lock.unlock()
 
164
 
 
165
 
 
166
class TestLockUnicodePath(TestCaseWithLock):
 
167
 
 
168
    _test_needs_features = [UnicodeFilenameFeature]
 
169
 
 
170
    def test_read_lock(self):
 
171
        self.build_tree([u'\u1234'])
 
172
        u_lock = self.read_lock(u'\u1234')
 
173
        self.addCleanup(u_lock.unlock)
 
174
 
 
175
    def test_write_lock(self):
 
176
        self.build_tree([u'\u1234'])
 
177
        u_lock = self.write_lock(u'\u1234')
 
178
        self.addCleanup(u_lock.unlock)