~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: John Arbash Meinel
  • Date: 2009-02-23 15:29:35 UTC
  • mfrom: (3943.7.7 bzr.code_style_cleanup)
  • mto: This revision was merged to the branch mainline in revision 4033.
  • Revision ID: john@arbash-meinel.com-20090223152935-oel9m92mwcc6nb4h
Merge the removal of all trailing whitespace, and resolve conflicts.

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)