~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 07:02:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1657.
  • Revision ID: mbp@sourcefrog.net-20060412070200-b12b348eff529d60
Move small ImmutableMemoryStore class into test module, 
which is the only place it's used

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