~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testtransactions.py

  • Committer: Robert Collins
  • Date: 2005-10-11 02:41:25 UTC
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051011024125-4e05fd2ffc83c965
cache revision history during read transactions

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
class TestSymbols(TestCase):
43
43
 
44
 
    def test_symbols(self):
 
44
    def test_public_symbols(self):
45
45
        from bzrlib.transactions import ReadOnlyTransaction
46
46
        from bzrlib.transactions import PassThroughTransaction
47
47
 
134
134
        self.assertEqual(DummyWeave('a weave'),
135
135
                         self.transaction.map.find_weave("id"))
136
136
 
 
137
    def test_precious_revision_history(self):
 
138
        """Disabled test until revision-history is a real object."""
 
139
        print "Disabled: test_precious_revision_history"
 
140
        return
 
141
        self.transaction.set_cache_size(0)
 
142
        history = []
 
143
        self.transaction.map.add_revision_history(history)
 
144
        self.assertEqual(history, self.transaction.map.find_revision_history())
 
145
        history = None
 
146
        # add an object, should not fall out even with no references.
 
147
        self.transaction.register_clean(
 
148
            self.transaction.map.find_revision_history(), precious=True)
 
149
        self.assertEqual([], self.transaction.map.find_revision_history())
 
150
 
137
151
 
138
152
class TestPassThroughTransaction(TestCase):
139
153