~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_store.py

  • Committer: Robert Collins
  • Date: 2006-03-28 14:29:13 UTC
  • mto: (1626.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1628.
  • Revision ID: robertc@robertcollins.net-20060328142913-ac5afb37075719c6
Convert log to use the new tsort.merge_sort routine.

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 TextStore(MemoryTransport())
 
105
        return store.ImmutableMemoryStore()
106
106
    
 
107
    def test_imports(self):
 
108
        from bzrlib.store import ImmutableMemoryStore
 
109
 
107
110
    def test_add_and_retrieve(self):
108
111
        store = self.get_store()
109
112
        store.add(StringIO('hello'), 'aa')
396
399
        my_store = store.TransportStore(MemoryTransport())
397
400
        self.assertEqual('%25', my_store._relpath('%'))
398
401
 
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
 
 
405
402
 
406
403
class TestVersionFileStore(TestCaseWithTransport):
407
404