~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

Merge in knit repository use of knits - still not a stable format, but can be experimented with.

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.transactions import (PassThroughTransaction,
 
25
                                 ReadOnlyTransaction,
 
26
                                 WriteTransaction,
 
27
                                 )
25
28
from bzrlib.transport import get_transport
26
29
 
27
30
 
78
81
                      PassThroughTransaction)
79
82
        self.lockable.lock_write()
80
83
        self.assertIs(self.lockable.get_transaction().__class__,
81
 
                      PassThroughTransaction)
 
84
                      WriteTransaction)
82
85
        self.lockable.unlock()
83
86
 
84
87
    def test__escape(self):