def test_invoice_line_data_prepares_invoice_line(self):
        """ It should prepare invoice line based on sale line """
        qty = 20
        with mock.patch.object(self.unit, 'binder_for'):
            line_id = self.unit.binder_for().to_odoo().sale_line_id
            line_id.product_uom_qty = qty
            self.unit.invoice_line_data(self.record)
            line_id._prepare_invoice_line.assert_called_once_with(qty)