~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/teststore.py

  • Committer: Robert Collins
  • Date: 2005-10-16 14:19:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1459.
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051016141924-8dcbb20f1c03756e
Many transport related tweaks:

- Remove get_partial as it was not used at all.
- Move store._iter_relpaths into transport as iter_files_recursive.
- Nuke ImmutableMemoryStore, replaced with MemoryTransport.
- Remove all direct use of the stat module from store logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    def test_adding_fails_when_present(self):
121
121
        my_store = self.get_store()
122
122
        my_store.add(StringIO('hello'), 'aa')
123
 
        self.assertRaises(store.StoreError,
 
123
        self.assertRaises(BzrError,
124
124
                          my_store.add, StringIO('hello'), 'aa')
125
125
 
126
126
    def test_total_size(self):