~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_store.py

Reinstate the transaction cache for bzr 1.5rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
426
426
        self._transaction = None
427
427
        self.assertRaises(errors.OutSideTransaction, vf.add_lines, 'b', [], [])
428
428
 
 
429
    def test_get_weave_or_empty_readonly_fails(self):
 
430
        self._transaction = transactions.ReadOnlyTransaction()
 
431
        vf = self.assertRaises(errors.ReadOnlyError,
 
432
                               self.vfstore.get_weave_or_empty,
 
433
                               'id',
 
434
                               self._transaction)
 
435
 
429
436
    def test_get_weave_readonly_cant_write(self):
430
437
        self._transaction = transactions.WriteTransaction()
431
438
        vf = self.vfstore.get_weave_or_empty('id', self._transaction)