示例#1
0
    def test_cssclasses_set_raises(self, val):
        """ CssClassable cssclasses set SHOULD raise on invalid values """

        o = CssClassable()
        with self.assertRaisesRegexp(TypeError, r'Unexpected\s+type.*"cssclasses'):
            o.cssclasses = val
        self.assertEqual(o.cssclasses, [])
示例#2
0
    def test_cssclasses_setget(self, val, exp):
        """ CssClassable cssclasses set-get normal """

        o = CssClassable()
        o.cssclasses = val

        self.assertEqual(o.cssclasses, exp)
示例#3
0
    def test_uiCssClasses(self, val, exp):
        o = CssClassable()
        o.cssclasses = val

        self.assertEqual(o.uiCssClasses(), exp)