You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
659 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Therp BV <http://therp.nl>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp.tests.common import TransactionCase
  5. class TestPartnerContactGender(TransactionCase):
  6. def setUp(self):
  7. super(TestPartnerContactGender, self).setUp()
  8. self.testpartner = self.env['res.partner'].create({
  9. 'name': 'test',
  10. 'title': self.env.ref('base.res_partner_title_madam').id,
  11. })
  12. def test_partner_contact_gender(self):
  13. from ..hooks import post_init_hook
  14. post_init_hook(self.cr, None)
  15. self.assertEqual(self.testpartner.gender, 'female')