def test_invoice_id_get_binder(self):
        """ It should get binder for record type """
        with mock.patch.object(self.unit, 'binder_for'):
            self.unit.binder_for.side_effect = EndTestException
            with self.assertRaises(EndTestException):
                self.unit.invoice_id(self.record)
            self.unit.binder_for.assert_called_once_with(
                'carepoint.procurement.order'
            )