Add test for access rights of menu and actions

issue4295
review12661002
This commit is contained in:
Nicolas Évrard committed 2015-01-02 16:07:54 +01:00
1 parent ce08f7a34d
commit 672871d433
1 file changed
+5 -1
+5 -1
View File
@@ -4,7 +4,7 @@ import unittest
from decimal import Decimal
import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends
from trytond.tests.test_tryton import test_view, test_depends, test_menu_action
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT
from trytond.transaction import Transaction
from trytond.exceptions import UserError
@@ -24,6 +24,10 @@ class AccountProductTestCase(unittest.TestCase):
'Test depends'
test_depends()
def test0007menu_actions(self):
'Test menu actions'
test_menu_action('account_product')
def test_account_used(self):
'Test account used'
ProductTemplate = POOL.get('product.template')