def METHOD_NAME(self):
    """Ensure qty are taken in account."""
    # prepare some data
    weights = [2, 30, 1, 24, 39]
    products = self._get_products(weights)
    picking = self._generate_picking(products)
    package = self.env["stock.quant.package"].create({})
    operations = self.env["stock.move.line"]
    for idx, product in enumerate(products):
        operations |= self._create_operation(
            picking,
            {
                "product_uom_qty": idx,  # nice one
                "product_id": product.id,
                "product_uom_id": product.uom_id.id,
                "result_package_id": package.id,
            },
        )
    # end of prepare data
    # test operation.get_weight()
    for operation in operations:
        self.assertEqual(
            operation.get_weight(),
            operation.product_id.weight * operation.product_uom_qty,
        )
    # test package._weight
    self.assertEqual(
        package.weight, sum([operation.get_weight() for operation in operations])
    )