web/test/unittest_uicfg.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 04 Dec 2009 19:45:19 +0100 (2009-12-04)
branchstable
changeset 3999 5dd6ffc2ccae
parent 3125 52b6b8c2ccc5
child 3464 99bd1ea0394a
permissions -rw-r--r--
added replace_state method to ease workflow migration. backported from forge as a reminder, not really tested yet
from cubicweb.devtools.apptest import EnvBasedTC
from cubicweb.web import uicfg

class UICFGTC(EnvBasedTC):

    def test_autoform_section_inlined(self):
        self.assertEquals(uicfg.autoform_is_inlined.etype_get('CWUser', 'use_email', 'subject', 'EmailAddress'),
                          True)
        self.assertEquals(uicfg.autoform_section.etype_get('CWUser', 'use_email', 'subject', 'EmailAddress'),
                          'generated')

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