def METHOD_NAME(
    product, attribute_value_generator
):
    """Ensure multiple values in proper order are assigned."""
    old_assignment = product.attributes.first()
    assert old_assignment is not None, "The product doesn't have attribute-values"
    assert old_assignment.values.count() == 1
    attribute = old_assignment.attribute
    attribute_value_generator(
        attribute=attribute,
        slug="attr-value2",
    )
    values = attribute.values.all()
    # Assign new values
    new_assignment = associate_attribute_values_to_instance(
        product, attribute, values[1], values[0]
    )
    # Ensure the new assignment was created and ordered correctly
    assert new_assignment.pk == old_assignment.pk
    assert new_assignment.values.count() == 2
    assert list(
        new_assignment.productvalueassignment.values_list("value_id", "sort_order")
    ) == [(values[1].pk, 0), (values[0].pk, 1)]