~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Martin Pool
  • Date: 2006-01-12 06:51:23 UTC
  • mto: (1185.65.25 storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: mbp@sourcefrog.net-20060112065123-387e10eb3b38d7fa
Fix funny mistake

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
from StringIO import StringIO
 
18
 
 
19
from bzrlib.branch import Branch
 
20
from bzrlib.errors import NoSuchFile, ReadOnlyError
 
21
from bzrlib.lockable_files import LockableFiles
17
22
from bzrlib.tests import TestCaseInTempDir
 
23
from bzrlib.transactions import PassThroughTransaction, ReadOnlyTransaction
18
24
from bzrlib.transport import get_transport
19
 
from bzrlib.transactions import PassThroughTransaction, ReadOnlyTransaction
20
 
from bzrlib.lockable_files import LockableFiles
21
 
from bzrlib.errors import NoSuchFile, ReadOnlyError
22
 
from StringIO import StringIO
23
 
 
24
25
 
25
26
class TestLockableFiles(TestCaseInTempDir):
26
27
 
80
81
        self.assertEqual('%25', self.lockable._escape('%'))
81
82
        
82
83
    def test__escape_empty(self):
83
 
        branch = Branch.initialize('.')
84
84
        self.assertEqual('', self.lockable._escape(''))
85
85