~bzr-pqm/bzr/1.17

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-08 01:24:43 UTC
  • mfrom: (4501.2.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090708012443-fd0130qlk7tfjy2q
(mbp) integrated community patches to docs and OS locks

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)