Add test for access rights of menu and actions

issue4295
review12661002
This commit is contained in:
Nicolas Évrard
2015-01-02 16:07:52 +01:00
parent 940bbdb18c
commit b18cebb960
+5 -1
View File
@@ -6,7 +6,7 @@ import datetime
from decimal import Decimal
import trytond.tests.test_tryton
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\
test_depends
test_depends, test_menu_action
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
from trytond.transaction import Transaction
@@ -27,6 +27,10 @@ class AccountInvoiceTestCase(unittest.TestCase):
'Test depends'
test_depends()
def test0007menu_actions(self):
'Test menu actions'
test_menu_action('account_invoice')
def test0010payment_term(self):
'Test payment_term'
with Transaction().start(DB_NAME, USER, context=CONTEXT):