/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_transactions.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for the behaviour of the Transaction concept in bzr."""
19
19
 
20
 
#import breezy specific imports here
 
20
# import breezy specific imports here
21
21
import breezy.errors as errors
22
22
from breezy.tests import TestCase
23
23
import breezy.transactions as transactions
102
102
    def test_small_cache(self):
103
103
        self.transaction.set_cache_size(1)
104
104
        # add an object, should not fall right out if there are no references
105
 
        #sys.getrefcounts(foo)
 
105
        # sys.getrefcounts(foo)
106
106
        self.transaction.map.add_weave("id", DummyWeave("a weave"))
107
107
        self.transaction.register_clean(self.transaction.map.find_weave("id"))
108
108
        self.assertEqual(DummyWeave("a weave"),
262
262
    def test_small_cache(self):
263
263
        self.transaction.set_cache_size(1)
264
264
        # add an object, should not fall right out if there are no references
265
 
        #sys.getrefcounts(foo)
 
265
        # sys.getrefcounts(foo)
266
266
        self.transaction.map.add_weave("id", DummyWeave("a weave"))
267
267
        self.transaction.register_clean(self.transaction.map.find_weave("id"))
268
268
        self.assertEqual(DummyWeave("a weave"),