/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_hashcache.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:
55
55
        hc = self.make_hashcache()
56
56
        self.build_tree_contents([('foo', b'hello')])
57
57
        self.assertEqual(hc.get_sha1('foo'),
58
 
                          b'aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d')
 
58
                         b'aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d')
59
59
        self.assertEqual(hc.miss_count, 1)
60
60
        self.assertEqual(hc.hit_count, 0)
61
61
 
126
126
    This lets us examine how old or new files would be handled, without
127
127
    actually having to wait for time to pass.
128
128
    """
 
129
 
129
130
    def __init__(self):
130
131
        # set root and cache file name to none to make sure we won't touch the
131
132
        # real filesystem