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.

22 lines
703 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2017 LasLabs Inc.
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo.tests.common import HttpCase
  5. class TestAccountAnalyticContract(HttpCase):
  6. def setUp(self):
  7. super(TestAccountAnalyticContract, self).setUp()
  8. self.contract_mod = self.env['account.analytic.contract']
  9. self.template = self.env.ref(
  10. 'website_portal_contract.website_contract_template_default'
  11. )
  12. def test_get_default_template(self):
  13. """ Test get_default_template returns correct template """
  14. self.assertEquals(
  15. self.contract_mod._get_default_template(),
  16. self.template,
  17. )