def METHOD_NAME(redis_client):
    proxy = proxy_for(1, 2)
    proxy.publish()
    client = heartbeat_config.get_redis_client()
    assert "1" in [key.decode() for key in client.keys()]
    # Check the per-account folder-list index was populated correctly: it
    # should be a sorted set of all folder IDs for that account, with the
    # folder's last heartbeat timestamp.
    acct_folder_index = client.zrange("1", 0, -1, withscores=True)
    assert len(acct_folder_index) == 1
    key, timestamp = acct_folder_index[0]
    assert key.decode() == "2"
    assert fuzzy_equals(proxy.heartbeat_at, timestamp)