/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: Jelmer Vernooij
  • Date: 2018-11-16 23:19:12 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20181116231912-e043vpq22bdkxa6q
Merge trunk.

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