def METHOD_NAME(self):
    plan = models.NutritionPlan(user_id=1, language_id=1)
    plan.save()
    meal = models.Meal(order=1)
    meal.plan = plan
    meal.save()
    ingredient = models.Ingredient.objects.get(pk=1)
    ingredient2 = models.Ingredient.objects.get(pk=2)
    ingredient3 = models.Ingredient.objects.get(pk=2)
    # One ingredient, 100 gr
    item = models.MealItem()
    item.meal = meal
    item.ingredient = ingredient
    item.weight_unit_id = None
    item.amount = 100
    item.order = 1
    item.save()
    result_item = item.get_nutritional_values()
    for i in result_item:
        self.assertEqual(result_item[i], Decimal(getattr(ingredient, i)).quantize(TWOPLACES))
    result_meal = meal.get_nutritional_values()
    self.assertEqual(result_item, result_meal)
    result_plan = plan.get_nutritional_values()
    self.assertEqual(result_meal, result_plan['total'])
    # One ingredient, 1 x unit 3
    item.delete()
    item = models.MealItem()
    item.meal = meal
    item.ingredient = ingredient
    item.order = 1
    item.amount = 1
    item.weight_unit_id = 3
    item.save()
    result_item = item.get_nutritional_values()
    for i in result_item:
        self.assertEqual(
            result_item[i],
            (getattr(ingredient, i) * Decimal(12.0) / 100).quantize(TWOPLACES),
        )
    result_meal = meal.get_nutritional_values()
    self.assertEqual(result_item, result_meal)
    result_plan = plan.get_nutritional_values()
    self.assertEqual(result_meal, result_plan['total'])
    # Add another ingredient, 200 gr
    item2 = models.MealItem()
    item2.meal = meal
    item2.ingredient = ingredient2
    item2.weight_unit_id = None
    item2.amount = 200
    item2.order = 1
    item2.save()
    result_item2 = item2.get_nutritional_values()
    result_total = {}
    for i in result_item2:
        self.assertEqual(result_item2[i], 2 * getattr(ingredient2, i))
        result_total[i] = result_item[i] + result_item2[i]
    result_meal = meal.get_nutritional_values()
    self.assertEqual(result_total, result_meal)
    result_plan = plan.get_nutritional_values()
    self.assertEqual(result_meal, result_plan['total'])
    # Add another ingredient, 20 gr
    item3 = models.MealItem()
    item3.meal = meal
    item3.ingredient = ingredient3
    item3.weight_unit_id = None
    item3.amount = 20
    item3.order = 1
    item3.save()
    result_item3 = item3.get_nutritional_values()
    for i in result_item3:
        self.assertEqual(
            result_item3[i],
            (getattr(ingredient3, i) * Decimal(20.0) / 100).quantize(TWOPLACES),
        )
        result_total[i] = result_total[i] + result_item3[i]
    result_meal = meal.get_nutritional_values()
    self.assertEqual(result_total, result_meal)
    result_plan = plan.get_nutritional_values()
    self.assertEqual(result_meal, result_plan['total'])