Package cssutils :: Package tests :: Module test_cssrule :: Class CSSRuleTestCase |
[hide private]
[frames] | no frames]

# Class CSSRuleTestCase

source code

           object --+
                    |
    unittest.TestCase --+
                        |
    basetest.BaseTestCase --+
                            |
                           CSSRuleTestCase

Known Subclasses:
  test_cssmediarule.CSSMediaRuleTestCase, test_csscharsetrule.CSSCharsetRuleTestCase, test_cssimportrule.CSSImportRuleTestCase, test_csspagerule.CSSPageRuleTestCase, test_cssunknownrule.CSSUnknownRuleTestCase, test_cssfontfacerule.CSSFontFaceRuleTestCase, test_csscomment.CSSCommentTestCase, test_cssstylerule.CSSStyleRuleTestCase, test_cssnamespacerule.CSSNamespaceRuleTestCase

base class for all CSSRule subclass tests

overwrite setUp with the appriopriate values, will be used in test_init and test_readonly overwrite all tests as you please, use:

       super(CLASSNAME, self).test_TESTNAME(params)

to use the base class tests too

Nested Classes | [hide private]
Inherited from `unittest.TestCase`: `failureException`

Instance Methods | [hide private]
setUp(self) OVERWRITE! self.r is the rule self.rRO the readonly rule relf.r_type the type as defined in CSSRule | source code
test_init(self) CSSRule.type and init | source code
test_readonly(self) CSSRule readonly | source code
_test_InvalidModificationErr(self, startwithspace) CSSRule.cssText InvalidModificationErr | source code
Inherited from `basetest.BaseTestCase`: `assertRaisesEx`, `assertRaisesMsg`, `do_equal_p`, `do_equal_r`, `do_raise_p`, `do_raise_r` Inherited from `unittest.TestCase`: `__call__`, `__init__`, `__repr__`, `__str__`, `assertAlmostEqual`, `assertAlmostEquals`, `assertEqual`, `assertEquals`, `assertFalse`, `assertNotAlmostEqual`, `assertNotAlmostEquals`, `assertNotEqual`, `assertNotEquals`, `assertRaises`, `assertTrue`, `assert_`, `countTestCases`, `debug`, `defaultTestResult`, `fail`, `failIf`, `failIfAlmostEqual`, `failIfEqual`, `failUnless`, `failUnlessAlmostEqual`, `failUnlessEqual`, `failUnlessRaises`, `id`, `run`, `shortDescription`, `tearDown` Inherited from `unittest.TestCase` (private): `_exc_info` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### setUp(self) | source code
OVERWRITE! self.r is the rule self.rRO the readonly rule relf.r_type the type as defined in CSSRule Overrides: basetest.BaseTestCase.setUp

### _test_InvalidModificationErr(self, startwithspace) | source code
CSSRule.cssText InvalidModificationErr called by subclasses startwithspace for test starting with this not the test but " test" is tested e.g. " @page {}" exception is the style rule test