/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Ian Clatworthy
  • Date: 2009-07-13 06:04:28 UTC
  • mfrom: (4527 +trunk)
  • mto: (4527.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4529.
  • Revision ID: ian.clatworthy@canonical.com-20090713060428-5m6apiywie6aqg6v
merge bzr.dev r4527

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)