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, [])
def test_cssclasses_setget(self, val, exp): """ CssClassable cssclasses set-get normal """ o = CssClassable() o.cssclasses = val self.assertEqual(o.cssclasses, exp)
def test_uiCssClasses(self, val, exp): o = CssClassable() o.cssclasses = val self.assertEqual(o.uiCssClasses(), exp)