/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-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

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
 
 
130
129
    def __init__(self):
131
130
        # set root and cache file name to none to make sure we won't touch the
132
131
        # real filesystem