~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_store.py

  • Committer: Martin Pool
  • Date: 2006-04-12 04:45:32 UTC
  • mfrom: (1608.2.13 bzr.mbp.escape-stores)
  • mto: This revision was merged to the branch mainline in revision 1657.
  • Revision ID: mbp@sourcefrog.net-20060412044532-fc8c5c9408aae88b
[merge][wip] Storage escaping

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
        my_store = store.TransportStore(MemoryTransport())
400
400
        self.assertEqual('%25', my_store._relpath('%'))
401
401
 
 
402
    def test_escaped_uppercase(self):
 
403
        """Uppercase letters are escaped for safety on Windows"""
 
404
        my_store = store.TransportStore(MemoryTransport(), escaped=True)
 
405
        # a particularly perverse file-id! :-)
 
406
        self.assertEquals(my_store._escape_file_id('C:<>'), '%43%3a%3c%3e')
 
407
 
402
408
 
403
409
class TestVersionFileStore(TestCaseWithTransport):
404
410