def METHOD_NAME(self, activities):
    """
    Given [4, 3, 2, 1, 0]
    With before 4
    Returns [3, 2, 1, 0]
    """
    dataset, times = activities
    activity_list = helpers.call_action(
        "package_activity_list",
        context={},
        id=dataset["id"],
        before=times[0],
    )
    assert len(activity_list) == 4
    assert activity_list[0]["data"]["package"]["notes"] == "Update 3"
    assert activity_list[-1]["data"]["package"]["notes"] == "Update 0"