def test_invoice_line_data_to_odoo(self):
        """ It should get Odoo record for binding """
        with mock.patch.object(self.unit, 'binder_for'):
            self.unit.binder_for().to_odoo.side_effect = EndTestException
            with self.assertRaises(EndTestException):
                self.unit.invoice_line_data(self.record)
            self.unit.binder_for().to_odoo.assert_called_once_with(
                self.record['rxdisp_id'], browse=True,
            )