~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_store.py

  • Committer: abentley
  • Date: 2006-04-20 23:47:53 UTC
  • mfrom: (1681 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1683.
  • Revision ID: abentley@lappy-20060420234753-6a6874b76f09f86d
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
class TestMemoryStore(TestCase):
103
103
    
104
104
    def get_store(self):
105
 
        return store.ImmutableMemoryStore()
 
105
        return TextStore(MemoryTransport())
106
106
    
107
 
    def test_imports(self):
108
 
        from bzrlib.store import ImmutableMemoryStore
109
 
 
110
107
    def test_add_and_retrieve(self):
111
108
        store = self.get_store()
112
109
        store.add(StringIO('hello'), 'aa')
399
396
        my_store = store.TransportStore(MemoryTransport())
400
397
        self.assertEqual('%25', my_store._relpath('%'))
401
398
 
 
399
    def test_escaped_uppercase(self):
 
400
        """Uppercase letters are escaped for safety on Windows"""
 
401
        my_store = store.TransportStore(MemoryTransport(), escaped=True)
 
402
        # a particularly perverse file-id! :-)
 
403
        self.assertEquals(my_store._escape_file_id('C:<>'), '%43%3a%3c%3e')
 
404
 
402
405
 
403
406
class TestVersionFileStore(TestCaseWithTransport):
404
407