~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-08 00:37:41 UTC
  • mfrom: (1594.2.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060308003741-08afccbf89005e87
Merge in :
 * Knit repositories use knits
 * Nested progress bar support.
 * Ghost aware graph api.

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):