web/test/unittest_uicfg.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 31 Mar 2010 09:57:18 +0200
branchstable
changeset 5094 13b7f30db0bb
parent 4997 aed7bdb9da54
child 5421 8167de96c523
permissions -rw-r--r--
[optimization] traced_selection is used very intensively in debug mode optimizing it is worth the pain. Basically : don't do stuff unnecessary when we don't trace anything.

from cubicweb.devtools.testlib import CubicWebTC
from cubicweb.web import uicfg

abaa = uicfg.actionbox_appearsin_addmenu

class UICFGTC(CubicWebTC):

    def test_default_actionbox_appearsin_addmenu_config(self):
        self.failIf(abaa.etype_get('TrInfo', 'wf_info_for', 'object', 'CWUser'))

if __name__ == '__main__':
    from logilab.common.testlib import unittest_main
    unittest_main()