From b18cebb960dc4c1c3fa0bfc19495f4d244862285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 2 Jan 2015 16:07:52 +0100 Subject: [PATCH] Add test for access rights of menu and actions issue4295 review12661002 --- tests/test_account_invoice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_account_invoice.py b/tests/test_account_invoice.py index ba1c6ac7ea..d861387cf6 100644 --- a/tests/test_account_invoice.py +++ b/tests/test_account_invoice.py @@ -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):