~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-03-09 07:14:10 UTC
  • mfrom: (1600 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1602.
  • Revision ID: mbp@sourcefrog.net-20060309071410-4ab7d54905541c75
[merge] from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import gzip
22
22
 
23
23
from bzrlib.errors import BzrError, UnlistableStore, NoSuchFile
24
 
from bzrlib.store import copy_all
25
24
from bzrlib.transport.local import LocalTransport
26
25
from bzrlib.store.text import TextStore
27
26
from bzrlib.tests import TestCase, TestCaseInTempDir
50
49
        store_a.add('foo', '1')
51
50
        os.mkdir('b')
52
51
        store_b = self.get_store('b')
53
 
        copy_all(store_a, store_b)
 
52
        store_b.copy_all_ids(store_a)
54
53
        self.assertEqual(store_a.get('1').read(), 'foo')
55
54
        self.assertEqual(store_b.get('1').read(), 'foo')
56
55
        # TODO: Switch the exception form UnlistableStore to
387
386
        to_store = TextStore(MemoryTransport(),
388
387
                             prefixed=True, compressed=True)
389
388
        to_store.register_suffix('sig')
390
 
        copy_all(from_store, to_store)
 
389
        to_store.copy_all_ids(from_store)
391
390
        self.assertEqual(1, len(to_store))
392
391
        self.assertEqual(set(['foo']), set(to_store.__iter__()))
393
392
        self.assertEqual('content', to_store.get('foo').read())