/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/test_lockable_files.py

  • Committer: Martin Pool
  • Date: 2006-03-10 06:29:53 UTC
  • mfrom: (1608 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060310062953-bc1c7ade75c89a7a
[merge] bzr.dev; pycurl not updated for readv yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib.lockable_files import LockableFiles, TransportLock
22
22
from bzrlib.lockdir import LockDir
23
23
from bzrlib.tests import TestCaseInTempDir
24
 
from bzrlib.transactions import PassThroughTransaction, ReadOnlyTransaction
 
24
from bzrlib.tests.test_transactions import DummyWeave
 
25
from bzrlib.transactions import (PassThroughTransaction,
 
26
                                 ReadOnlyTransaction,
 
27
                                 WriteTransaction,
 
28
                                 )
25
29
from bzrlib.transport import get_transport
26
30
 
27
31
 
78
82
                      PassThroughTransaction)
79
83
        self.lockable.lock_write()
80
84
        self.assertIs(self.lockable.get_transaction().__class__,
81
 
                      PassThroughTransaction)
 
85
                      WriteTransaction)
 
86
        # check that finish is called:
 
87
        vf = DummyWeave('a')
 
88
        self.lockable.get_transaction().register_dirty(vf)
82
89
        self.lockable.unlock()
 
90
        self.assertTrue(vf.finished)
83
91
 
84
92
    def test__escape(self):
85
93
        self.assertEqual('%25', self.lockable._escape('%'))