def METHOD_NAME(address):
    """Ensure storing an address handles the possibility of an user
    having the same address associated to them multiple time is handled properly.
    It should use the first identical address associated to the user.
    """
    same_address = Address.objects.create(**address.as_data())
    user = User.objects.create_user("test@example.com", "password")
    user.addresses.set([address, same_address])
    expected_user_addresses_count = 2
    manager = get_plugins_manager()
    store_user_address(user, address, AddressType.BILLING, manager)
    assert user.addresses.count() == expected_user_addresses_count
    assert user.default_billing_address_id == address.pk