def test_import_invoice_lines_for_procurement_unit_for_importer(self):
        """ It should get unit for importer """
        with mock.patch.object(self.unit, 'unit_for') as mk:
            mk.side_effect = [None, EndTestException]
            with self.assertRaises(EndTestException):
                self.unit._import_invoice_lines_for_procurement(True)
            mk.assert_called_with(
                account_invoice_line.AccountInvoiceLineImporter
            )