~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
    def pretend_to_sleep(self, secs):
159
159
        self._clock += secs
160
160
 
161
 
    
 
161
 
162
162
class TestHashCacheFakeFilesystem(TestCaseInTempDir):
163
163
    """Tests the hashcache using a simulated OS.
164
164
    """
173
173
        self.assertEquals(hc.get_sha1('foo'), sha1('hello'))
174
174
        self.assertEquals(hc.miss_count, 1)
175
175
        self.assertEquals(hc.hit_count, 0)
176
 
        # if we try again it's still too new; 
 
176
        # if we try again it's still too new;
177
177
        self.assertEquals(hc.get_sha1('foo'), sha1('hello'))
178
178
        self.assertEquals(hc.miss_count, 2)
179
179
        self.assertEquals(hc.hit_count, 0)