From ad388d27fb528eede9c43eda0acc72d49c1f82d1 Mon Sep 17 00:00:00 2001 From: Leonardo Rochael Almeida <leonardo@nexedi.com> Date: Mon, 25 Jun 2012 13:53:38 +0200 Subject: [PATCH] fixup! Improve TestLocalRoleManagement resilience thinko: inverted logic --- product/ERP5Security/tests/testERP5Security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Security/tests/testERP5Security.py b/product/ERP5Security/tests/testERP5Security.py index 0933bea56e..4a04712ff1 100644 --- a/product/ERP5Security/tests/testERP5Security.py +++ b/product/ERP5Security/tests/testERP5Security.py @@ -489,7 +489,7 @@ class TestLocalRoleManagement(ERP5TypeTestCase): codification="%s1" % code) # add another function subcategory. function_category = category_tool['function'] - if function_category.get('another_subcat', None) is not None: + if function_category.get('another_subcat', None) is None: function_category.newContent(portal_type='Category', id='another_subcat', codification='F2') -- 2.30.9