diff --git a/tests/test_company.py b/tests/test_company.py index feb8f6ec04..a46735bc43 100644 --- a/tests/test_company.py +++ b/tests/test_company.py @@ -4,34 +4,23 @@ import unittest import doctest import trytond.tests.test_tryton -from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\ - test_depends, test_menu_action +from trytond.tests.test_tryton import ModuleTestCase +from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT from trytond.transaction import Transaction -class CompanyTestCase(unittest.TestCase): +class CompanyTestCase(ModuleTestCase): 'Test Company module' + module = 'company' def setUp(self): - trytond.tests.test_tryton.install_module('company') + super(CompanyTestCase, self).setUp() self.party = POOL.get('party.party') self.company = POOL.get('company.company') self.employee = POOL.get('company.employee') self.currency = POOL.get('currency.currency') self.user = POOL.get('res.user') - def test0005views(self): - 'Test views' - test_view('company') - - def test0006depends(self): - 'Test depends' - test_depends() - - def test0007menu_actions(self): - 'Test menu actions' - test_menu_action('company') - def test0010company(self): 'Create company' with Transaction().start(DB_NAME, USER,