Package cssutils :: Package tests :: Module basetest :: Class BaseTestCase |
[hide private]
[frames] | no frames]

# Class BaseTestCase

source code

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

Known Subclasses:
  test_cssutils.CSSutilsTestCase, test_cssrule.CSSRuleTestCase, test_selector.SelectorTestCase, test_serialize.CSSSerializerTestCase, test_cssproperties.CSSPropertiesTestCase, test_cssrulelist.CSSRuleListTestCase, test_cssvalue.CSSPrimitiveValueTestCase, test_cssvalue.CSSValueListTestCase, test_cssvalue.CSSValueTestCase, test_util.UtilTestCase, test_mediaquery.MediaQueryTestCase, test_cssstyledeclaration.CSSStyleDeclarationTestCase, test_parse.CSSStyleSheetTestCase, test_tokenize2.TokenizerTestCase, test_property.PropertyTestCase, test_cssstylesheet.CSSStyleSheetTestCase, test_selectorlist.SelectorListTestCase, test_medialist.MediaListTestCase

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

Instance Methods | [hide private]
assertRaisesEx(self, exception, callable, *args, **kwargs) from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307970 | source code
assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs) Just like unittest.TestCase.assertRaises, but checks that the message is right too. | source code
setUp(self) Hook method for setting up the test fixture before exercising it. | source code
do_equal_p(self, tests, att=`'``cssText``'`, debug=False, raising=False) if raising self.p is used for parsing, else self.pf | source code
do_raise_p(self, tests, debug=False, raising=False) | source code
do_equal_r(self, tests, att=`'``cssText``'`, debug=False) | source code
do_raise_r(self, tests, att=`'``_setCssText``'`, debug=False) | source code
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]

### assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs) | source code
Just like unittest.TestCase.assertRaises, but checks that the message is right too. Usage:
       self.assertRaisesMsg(
           MyException, "Exception message",
           my_function, (arg1, arg2)
           )
from http://www.nedbatchelder.com/blog/200609.html#e20060905T064418

### setUp(self) | source code
Hook method for setting up the test fixture before exercising it. Overrides: unittest.TestCase.setUp (inherited documentation)