Files
odoo_source/addons/website_mail/tests/test_controllers.py
T
Keyur Gajjar 30f48eb6b6 [MIG] website_mail: code migration to new api
No functional changes, only rewrite the code with
the api.v8 which more pythonic and smooth.
2016-04-13 11:20:53 +02:00

23 lines
743 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.mail.tests.common import TestMail
from odoo.addons.website_mail.controllers.main import WebsiteMail
from odoo.tools import mute_logger, email_split
class TestControllers(TestMail):
def test_00_subscribe(self):
# from odoo.addons.web.http import request
# print request
cr, uid = self.cr, self.uid
# context = { }
# email = 'Marcel Dupuis <marcel.dupuis@example.com>'
# website_mail = WebsiteMail()
# pid = website_mail._find_or_create_partner(email, context)
# partner = self.res_partner.browse(cr, uid, pid)
# print partner.name, partner.email