web/test/unittest_uicfg.py
branch3.5
changeset 3125 52b6b8c2ccc5
child 3464 99bd1ea0394a
equal deleted inserted replaced
3123:5ce118f80936 3125:52b6b8c2ccc5
       
     1 from cubicweb.devtools.apptest import EnvBasedTC
       
     2 from cubicweb.web import uicfg
       
     3 
       
     4 class UICFGTC(EnvBasedTC):
       
     5 
       
     6     def test_autoform_section_inlined(self):
       
     7         self.assertEquals(uicfg.autoform_is_inlined.etype_get('CWUser', 'use_email', 'subject', 'EmailAddress'),
       
     8                           True)
       
     9         self.assertEquals(uicfg.autoform_section.etype_get('CWUser', 'use_email', 'subject', 'EmailAddress'),
       
    10                           'generated')
       
    11 
       
    12 if __name__ == '__main__':
       
    13     from logilab.common.testlib import unittest_main
       
    14     unittest_main()