def METHOD_NAME(self):
    vals = {
        "model": self.partner._name,
        "res_id": self.partner.id,
    }
    record = self.backend.create_record("test_csv_input", vals)
    with mock.patch.object(type(self.backend), "_exchange_send") as mocked:
        mocked.return_value = "AAA"
        with self.assertRaises(UserError) as err:
            record.action_exchange_send()
        self.assertEqual(
            err.exception.args[0],
            "Record ID=%d is not meant to be sent!" % record.id,
        )
        mocked.assert_not_called()