/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

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
45
45
class TestSymbols(TestCase):
46
46
 
47
47
    def test_public_symbols(self):
48
 
        from breezy.transactions import ReadOnlyTransaction
49
 
        from breezy.transactions import PassThroughTransaction
 
48
        from breezy.transactions import ReadOnlyTransaction  # noqa: F401
 
49
        from breezy.transactions import PassThroughTransaction  # noqa: F401
50
50
 
51
51
 
52
52
class TestReadOnlyTransaction(TestCase):
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"),