~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/teststore.py

  • Committer: Martin Pool
  • Date: 2005-10-06 04:09:55 UTC
  • mfrom: (1413)
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1417.
  • Revision ID: mbp@sourcefrog.net-20051006040955-36f27e5a8d5c977b
[merge] from robert

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        store = get_compressed_store()
120
120
        test_ignore_get(self, store)
121
121
 
122
 
 
123
122
    def test_total_size(self):
124
123
        store = get_compressed_store('.')
125
124
        store.add(StringIO('goodbye'), '123123')
138
137
        self.assertEqual(store_a['1'].read(), 'foo')
139
138
        self.assertEqual(store_b['1'].read(), 'foo')
140
139
 
 
140
 
141
141
class TestMemoryStore(TestCase):
142
142
    
143
143
    def get_store(self):
176
176
        # store_c = RemoteStore('http://example.com/')
177
177
        # self.assertRaises(UnlistableStore, copy_all, store_c, store_b)
178
178
 
 
179
 
179
180
class TestTextStore(TestCaseInTempDir):
180
181
    def test_multiple_add(self):
181
182
        """Multiple add with same ID should raise a BzrError"""
190
191
        store = get_text_store()
191
192
        test_ignore_get(self, store)
192
193
 
193
 
 
194
194
    def test_copy_all(self):
195
195
        """Test copying"""
196
196
        os.mkdir('a')