def METHOD_NAME(hosts, mocker, tmpdir):
    fact_cache = os.path.join(tmpdir, 'facts')
    last_modified = start_fact_cache(hosts, fact_cache, timeout=0)
    bulk_update = mocker.patch('django.db.models.query.QuerySet.bulk_update')
    for h in hosts:
        filepath = os.path.join(fact_cache, h.name)
        with open(filepath, 'w') as f:
            f.write('not valid json!')
            f.flush()
            new_modification_time = time.time() + 3600
            os.utime(filepath, (new_modification_time, new_modification_time))
    finish_fact_cache(hosts, fact_cache, last_modified)
    bulk_update.assert_not_called()