~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/tests/test_filechangecache.py

  • Committer: Michael Hudson
  • Date: 2007-09-10 12:51:42 UTC
  • mto: This revision was merged to the branch mainline in revision 139.
  • Revision ID: michael.hudson@canonical.com-20070910125142-4s6mo8896w9r5s0k
so i cleaned up the tests, but also broke them :( need to look at getting PQM to run the loggerhead tests...

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
        result = self.cache.get_file_changes(self.entries)
62
62
 
63
 
        assert result == self.revids
64
 
        assert self.history.fetched_revids == set(self.revids)
 
63
        assert result == revids
 
64
        assert self.history.fetched_revids == set(revids)
65
65
 
66
66
    def test_full_cache(self):
67
67
        """A full cache passes none of the revids through to the history
87
87
            revids = cached_revids[:]
88
88
            revids.insert(i, 'uncached')
89
89
            self.makeHistoryAndEntriesForRevids(
90
 
                revids, fillCacheWith=cached_revids)
 
90
                revids, fill_cache_with=cached_revids)
91
91
 
92
92
            result = self.cache.get_file_changes(self.entries)
93
93
            assert result == revids