@log_calls
  def add(self, remote_path, fingerprint):
    '''
    Add item to cache. Item must already be stored in cache path returned
    from lookup().
    '''
    if not self.cache_criterion(remote_path):
      raise AssertionError(remote_path % "should not add '%s' to cache as it does not meet cache criterion")
    cache_path = self.cache_path_for(remote_path)
    log.debug("checking local cache at '%s' for '%s'", cache_path, remote_path)
    if not os.path.isfile(cache_path):
      raise AssertionError("missing cached file at '%s' for '%s'" % (cache_path, remote_path))
    self.fingerprints.update_fingerprint(remote_path, fingerprint)
    self._write_state()
dataset/ETHPy150Open bloomreach/zinc/zinc.py/FileCache.add/swapped operands of `%`