~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/teststore.py

  • Committer: Aaron Bentley
  • Date: 2005-09-29 21:07:17 UTC
  • mfrom: (1393.1.6)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: abentley@panoramicfeedback.com-20050929210717-cd73981590f17017
Merged the weave changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test Store implementation
18
18
"""
 
19
 
 
20
from StringIO import StringIO
 
21
import os
 
22
 
 
23
from bzrlib.remotebranch import RemoteStore
19
24
from bzrlib.store import ImmutableStore, copy_all
20
 
from bzrlib.remotebranch import RemoteStore
21
25
from bzrlib.selftest import TestCaseInTempDir
22
 
from StringIO import StringIO
23
26
from bzrlib.errors import BzrError, UnlistableStore
24
 
import os
 
27
 
25
28
 
26
29
class TestStore(TestCaseInTempDir):
27
30
    def test_multiple_add(self):
42
45
        self.assertEqual(store_b['1'].read(), 'foo')
43
46
        store_c = RemoteStore('http://example.com/')
44
47
        self.assertRaises(UnlistableStore, copy_all, store_c, store_b)
45
 
        
46
 
 
47
 
TEST_CLASSES = [
48
 
    TestStore,
49
 
    ]