1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.testing.disabled_cases</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.testing.html"><font color="#ffffff">testing</font></a>.disabled_cases</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/testing/disabled_cases.py">telemetry/testing/disabled_cases.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE file.</tt></p> 16<p> 17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18<tr bgcolor="#aa55cc"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.decorators.html">telemetry.decorators</a><br> 24</td><td width="25%" valign=top><a href="unittest.html">unittest</a><br> 25</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 26<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 27<tr bgcolor="#ee77aa"> 28<td colspan=3 valign=bottom> <br> 29<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 30 31<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 32<td width="100%"><dl> 33<dt><font face="helvetica, arial"><a href="unittest.case.html#TestCase">unittest.case.TestCase</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 34</font></dt><dd> 35<dl> 36<dt><font face="helvetica, arial"><a href="telemetry.testing.disabled_cases.html#DisabledCases">DisabledCases</a> 37</font></dt></dl> 38</dd> 39</dl> 40 <p> 41<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 42<tr bgcolor="#ffc8d8"> 43<td colspan=3 valign=bottom> <br> 44<font color="#000000" face="helvetica, arial"><a name="DisabledCases">class <strong>DisabledCases</strong></a>(<a href="unittest.case.html#TestCase">unittest.case.TestCase</a>)</font></td></tr> 45 46<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 47<td colspan=2><tt># These are not real unittests.<br> 48# They are merely to test our Enable/Disable annotations.<br> </tt></td></tr> 49<tr><td> </td> 50<td width="100%"><dl><dt>Method resolution order:</dt> 51<dd><a href="telemetry.testing.disabled_cases.html#DisabledCases">DisabledCases</a></dd> 52<dd><a href="unittest.case.html#TestCase">unittest.case.TestCase</a></dd> 53<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 54</dl> 55<hr> 56Methods defined here:<br> 57<dl><dt><a name="DisabledCases-testAllDisabled"><strong>testAllDisabled</strong></a>(self)</dt></dl> 58 59<dl><dt><a name="DisabledCases-testAllEnabled"><strong>testAllEnabled</strong></a>(self)</dt></dl> 60 61<dl><dt><a name="DisabledCases-testChromeOSOnly"><strong>testChromeOSOnly</strong></a>(self)</dt></dl> 62 63<dl><dt><a name="DisabledCases-testHasTabs"><strong>testHasTabs</strong></a>(self)</dt></dl> 64 65<dl><dt><a name="DisabledCases-testMacOnly"><strong>testMacOnly</strong></a>(self)</dt></dl> 66 67<dl><dt><a name="DisabledCases-testMavericksOnly"><strong>testMavericksOnly</strong></a>(self)</dt></dl> 68 69<dl><dt><a name="DisabledCases-testNoChromeOS"><strong>testNoChromeOS</strong></a>(self)</dt></dl> 70 71<dl><dt><a name="DisabledCases-testNoMac"><strong>testNoMac</strong></a>(self)</dt></dl> 72 73<dl><dt><a name="DisabledCases-testNoMavericks"><strong>testNoMavericks</strong></a>(self)</dt></dl> 74 75<dl><dt><a name="DisabledCases-testNoSystem"><strong>testNoSystem</strong></a>(self)</dt></dl> 76 77<dl><dt><a name="DisabledCases-testNoWinLinux"><strong>testNoWinLinux</strong></a>(self)</dt></dl> 78 79<dl><dt><a name="DisabledCases-testSystemOnly"><strong>testSystemOnly</strong></a>(self)</dt></dl> 80 81<dl><dt><a name="DisabledCases-testWinOrLinuxOnly"><strong>testWinOrLinuxOnly</strong></a>(self)</dt></dl> 82 83<hr> 84Methods inherited from <a href="unittest.case.html#TestCase">unittest.case.TestCase</a>:<br> 85<dl><dt><a name="DisabledCases-__call__"><strong>__call__</strong></a>(self, *args, **kwds)</dt></dl> 86 87<dl><dt><a name="DisabledCases-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl> 88 89<dl><dt><a name="DisabledCases-__hash__"><strong>__hash__</strong></a>(self)</dt></dl> 90 91<dl><dt><a name="DisabledCases-__init__"><strong>__init__</strong></a>(self, methodName<font color="#909090">='runTest'</font>)</dt><dd><tt>Create an instance of the class that will use the named test<br> 92method when executed. Raises a ValueError if the instance does<br> 93not have a method with the specified name.</tt></dd></dl> 94 95<dl><dt><a name="DisabledCases-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl> 96 97<dl><dt><a name="DisabledCases-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> 98 99<dl><dt><a name="DisabledCases-__str__"><strong>__str__</strong></a>(self)</dt></dl> 100 101<dl><dt><a name="DisabledCases-addCleanup"><strong>addCleanup</strong></a>(self, function, *args, **kwargs)</dt><dd><tt>Add a function, with arguments, to be called when the test is<br> 102completed. Functions added are called on a LIFO basis and are<br> 103called after tearDown on test failure or success.<br> 104 <br> 105Cleanup items are called even if setUp fails (unlike tearDown).</tt></dd></dl> 106 107<dl><dt><a name="DisabledCases-addTypeEqualityFunc"><strong>addTypeEqualityFunc</strong></a>(self, typeobj, function)</dt><dd><tt>Add a type specific assertEqual style function to compare a type.<br> 108 <br> 109This method is for use by <a href="unittest.case.html#TestCase">TestCase</a> subclasses that need to register<br> 110their own type equality functions to provide nicer error messages.<br> 111 <br> 112Args:<br> 113 typeobj: The data type to call this function on when both values<br> 114 are of the same type in <a href="#DisabledCases-assertEqual">assertEqual</a>().<br> 115 function: The callable taking two arguments and an optional<br> 116 msg= argument that raises self.<strong>failureException</strong> with a<br> 117 useful error message when the two arguments are not equal.</tt></dd></dl> 118 119<dl><dt><a name="DisabledCases-assertAlmostEqual"><strong>assertAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=None</font>, msg<font color="#909090">=None</font>, delta<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br> 120difference rounded to the given number of decimal places<br> 121(default 7) and comparing to zero, or by comparing that the<br> 122between the two objects is more than the given delta.<br> 123 <br> 124Note that decimal places (from zero) are usually not the same<br> 125as significant digits (measured from the most signficant digit).<br> 126 <br> 127If the two objects compare equal then they will automatically<br> 128compare almost equal.</tt></dd></dl> 129 130<dl><dt><a name="DisabledCases-assertAlmostEquals"><strong>assertAlmostEquals</strong></a> = assertAlmostEqual(self, first, second, places<font color="#909090">=None</font>, msg<font color="#909090">=None</font>, delta<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br> 131difference rounded to the given number of decimal places<br> 132(default 7) and comparing to zero, or by comparing that the<br> 133between the two objects is more than the given delta.<br> 134 <br> 135Note that decimal places (from zero) are usually not the same<br> 136as significant digits (measured from the most signficant digit).<br> 137 <br> 138If the two objects compare equal then they will automatically<br> 139compare almost equal.</tt></dd></dl> 140 141<dl><dt><a name="DisabledCases-assertDictContainsSubset"><strong>assertDictContainsSubset</strong></a>(self, expected, actual, msg<font color="#909090">=None</font>)</dt><dd><tt>Checks whether actual is a superset of expected.</tt></dd></dl> 142 143<dl><dt><a name="DisabledCases-assertDictEqual"><strong>assertDictEqual</strong></a>(self, d1, d2, msg<font color="#909090">=None</font>)</dt></dl> 144 145<dl><dt><a name="DisabledCases-assertEqual"><strong>assertEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br> 146operator.</tt></dd></dl> 147 148<dl><dt><a name="DisabledCases-assertEquals"><strong>assertEquals</strong></a> = assertEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br> 149operator.</tt></dd></dl> 150 151<dl><dt><a name="DisabledCases-assertFalse"><strong>assertFalse</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Check that the expression is false.</tt></dd></dl> 152 153<dl><dt><a name="DisabledCases-assertGreater"><strong>assertGreater</strong></a>(self, a, b, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a > b), but with a nicer default message.</tt></dd></dl> 154 155<dl><dt><a name="DisabledCases-assertGreaterEqual"><strong>assertGreaterEqual</strong></a>(self, a, b, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a >= b), but with a nicer default message.</tt></dd></dl> 156 157<dl><dt><a name="DisabledCases-assertIn"><strong>assertIn</strong></a>(self, member, container, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a in b), but with a nicer default message.</tt></dd></dl> 158 159<dl><dt><a name="DisabledCases-assertIs"><strong>assertIs</strong></a>(self, expr1, expr2, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a is b), but with a nicer default message.</tt></dd></dl> 160 161<dl><dt><a name="DisabledCases-assertIsInstance"><strong>assertIsInstance</strong></a>(self, obj, cls, msg<font color="#909090">=None</font>)</dt><dd><tt>Same as <a href="#DisabledCases-assertTrue">assertTrue</a>(isinstance(obj, cls)), with a nicer<br> 162default message.</tt></dd></dl> 163 164<dl><dt><a name="DisabledCases-assertIsNone"><strong>assertIsNone</strong></a>(self, obj, msg<font color="#909090">=None</font>)</dt><dd><tt>Same as <a href="#DisabledCases-assertTrue">assertTrue</a>(obj is None), with a nicer default message.</tt></dd></dl> 165 166<dl><dt><a name="DisabledCases-assertIsNot"><strong>assertIsNot</strong></a>(self, expr1, expr2, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a is not b), but with a nicer default message.</tt></dd></dl> 167 168<dl><dt><a name="DisabledCases-assertIsNotNone"><strong>assertIsNotNone</strong></a>(self, obj, msg<font color="#909090">=None</font>)</dt><dd><tt>Included for symmetry with assertIsNone.</tt></dd></dl> 169 170<dl><dt><a name="DisabledCases-assertItemsEqual"><strong>assertItemsEqual</strong></a>(self, expected_seq, actual_seq, msg<font color="#909090">=None</font>)</dt><dd><tt>An unordered sequence specific comparison. It asserts that<br> 171actual_seq and expected_seq have the same element counts.<br> 172Equivalent to::<br> 173 <br> 174 <a href="#DisabledCases-assertEqual">assertEqual</a>(Counter(iter(actual_seq)),<br> 175 Counter(iter(expected_seq)))<br> 176 <br> 177Asserts that each element has the same count in both sequences.<br> 178Example:<br> 179 - [0, 1, 1] and [1, 0, 1] compare equal.<br> 180 - [0, 0, 1] and [0, 1] compare unequal.</tt></dd></dl> 181 182<dl><dt><a name="DisabledCases-assertLess"><strong>assertLess</strong></a>(self, a, b, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a < b), but with a nicer default message.</tt></dd></dl> 183 184<dl><dt><a name="DisabledCases-assertLessEqual"><strong>assertLessEqual</strong></a>(self, a, b, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a <= b), but with a nicer default message.</tt></dd></dl> 185 186<dl><dt><a name="DisabledCases-assertListEqual"><strong>assertListEqual</strong></a>(self, list1, list2, msg<font color="#909090">=None</font>)</dt><dd><tt>A list-specific equality assertion.<br> 187 <br> 188Args:<br> 189 list1: The first list to compare.<br> 190 list2: The second list to compare.<br> 191 msg: Optional message to use on failure instead of a list of<br> 192 differences.</tt></dd></dl> 193 194<dl><dt><a name="DisabledCases-assertMultiLineEqual"><strong>assertMultiLineEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Assert that two multi-line strings are equal.</tt></dd></dl> 195 196<dl><dt><a name="DisabledCases-assertNotAlmostEqual"><strong>assertNotAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=None</font>, msg<font color="#909090">=None</font>, delta<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br> 197difference rounded to the given number of decimal places<br> 198(default 7) and comparing to zero, or by comparing that the<br> 199between the two objects is less than the given delta.<br> 200 <br> 201Note that decimal places (from zero) are usually not the same<br> 202as significant digits (measured from the most signficant digit).<br> 203 <br> 204Objects that are equal automatically fail.</tt></dd></dl> 205 206<dl><dt><a name="DisabledCases-assertNotAlmostEquals"><strong>assertNotAlmostEquals</strong></a> = assertNotAlmostEqual(self, first, second, places<font color="#909090">=None</font>, msg<font color="#909090">=None</font>, delta<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br> 207difference rounded to the given number of decimal places<br> 208(default 7) and comparing to zero, or by comparing that the<br> 209between the two objects is less than the given delta.<br> 210 <br> 211Note that decimal places (from zero) are usually not the same<br> 212as significant digits (measured from the most signficant digit).<br> 213 <br> 214Objects that are equal automatically fail.</tt></dd></dl> 215 216<dl><dt><a name="DisabledCases-assertNotEqual"><strong>assertNotEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '!='<br> 217operator.</tt></dd></dl> 218 219<dl><dt><a name="DisabledCases-assertNotEquals"><strong>assertNotEquals</strong></a> = assertNotEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '!='<br> 220operator.</tt></dd></dl> 221 222<dl><dt><a name="DisabledCases-assertNotIn"><strong>assertNotIn</strong></a>(self, member, container, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like <a href="#DisabledCases-assertTrue">assertTrue</a>(a not in b), but with a nicer default message.</tt></dd></dl> 223 224<dl><dt><a name="DisabledCases-assertNotIsInstance"><strong>assertNotIsInstance</strong></a>(self, obj, cls, msg<font color="#909090">=None</font>)</dt><dd><tt>Included for symmetry with assertIsInstance.</tt></dd></dl> 225 226<dl><dt><a name="DisabledCases-assertNotRegexpMatches"><strong>assertNotRegexpMatches</strong></a>(self, text, unexpected_regexp, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test if the text matches the regular expression.</tt></dd></dl> 227 228<dl><dt><a name="DisabledCases-assertRaises"><strong>assertRaises</strong></a>(self, excClass, callableObj<font color="#909090">=None</font>, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is raised<br> 229by callableObj when invoked with arguments args and keyword<br> 230arguments kwargs. If a different type of exception is<br> 231raised, it will not be caught, and the test case will be<br> 232deemed to have suffered an error, exactly as for an<br> 233unexpected exception.<br> 234 <br> 235If called with callableObj omitted or None, will return a<br> 236context object used like this::<br> 237 <br> 238 with <a href="#DisabledCases-assertRaises">assertRaises</a>(SomeException):<br> 239 do_something()<br> 240 <br> 241The context manager keeps a reference to the exception as<br> 242the 'exception' attribute. This allows you to inspect the<br> 243exception after the assertion::<br> 244 <br> 245 with <a href="#DisabledCases-assertRaises">assertRaises</a>(SomeException) as cm:<br> 246 do_something()<br> 247 the_exception = cm.exception<br> 248 <a href="#DisabledCases-assertEqual">assertEqual</a>(the_exception.error_code, 3)</tt></dd></dl> 249 250<dl><dt><a name="DisabledCases-assertRaisesRegexp"><strong>assertRaisesRegexp</strong></a>(self, expected_exception, expected_regexp, callable_obj<font color="#909090">=None</font>, *args, **kwargs)</dt><dd><tt>Asserts that the message in a raised exception matches a regexp.<br> 251 <br> 252Args:<br> 253 expected_exception: Exception class expected to be raised.<br> 254 expected_regexp: Regexp (re pattern object or string) expected<br> 255 to be found in error message.<br> 256 callable_obj: Function to be called.<br> 257 args: Extra args.<br> 258 kwargs: Extra kwargs.</tt></dd></dl> 259 260<dl><dt><a name="DisabledCases-assertRegexpMatches"><strong>assertRegexpMatches</strong></a>(self, text, expected_regexp, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the text matches the regular expression.</tt></dd></dl> 261 262<dl><dt><a name="DisabledCases-assertSequenceEqual"><strong>assertSequenceEqual</strong></a>(self, seq1, seq2, msg<font color="#909090">=None</font>, seq_type<font color="#909090">=None</font>)</dt><dd><tt>An equality assertion for ordered sequences (like lists and tuples).<br> 263 <br> 264For the purposes of this function, a valid ordered sequence type is one<br> 265which can be indexed, has a length, and has an equality operator.<br> 266 <br> 267Args:<br> 268 seq1: The first sequence to compare.<br> 269 seq2: The second sequence to compare.<br> 270 seq_type: The expected datatype of the sequences, or None if no<br> 271 datatype should be enforced.<br> 272 msg: Optional message to use on failure instead of a list of<br> 273 differences.</tt></dd></dl> 274 275<dl><dt><a name="DisabledCases-assertSetEqual"><strong>assertSetEqual</strong></a>(self, set1, set2, msg<font color="#909090">=None</font>)</dt><dd><tt>A set-specific equality assertion.<br> 276 <br> 277Args:<br> 278 set1: The first set to compare.<br> 279 set2: The second set to compare.<br> 280 msg: Optional message to use on failure instead of a list of<br> 281 differences.<br> 282 <br> 283assertSetEqual uses ducktyping to support different types of sets, and<br> 284is optimized for sets specifically (parameters must support a<br> 285difference method).</tt></dd></dl> 286 287<dl><dt><a name="DisabledCases-assertTrue"><strong>assertTrue</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Check that the expression is true.</tt></dd></dl> 288 289<dl><dt><a name="DisabledCases-assertTupleEqual"><strong>assertTupleEqual</strong></a>(self, tuple1, tuple2, msg<font color="#909090">=None</font>)</dt><dd><tt>A tuple-specific equality assertion.<br> 290 <br> 291Args:<br> 292 tuple1: The first tuple to compare.<br> 293 tuple2: The second tuple to compare.<br> 294 msg: Optional message to use on failure instead of a list of<br> 295 differences.</tt></dd></dl> 296 297<dl><dt><a name="DisabledCases-assert_"><strong>assert_</strong></a> = assertTrue(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Check that the expression is true.</tt></dd></dl> 298 299<dl><dt><a name="DisabledCases-countTestCases"><strong>countTestCases</strong></a>(self)</dt></dl> 300 301<dl><dt><a name="DisabledCases-debug"><strong>debug</strong></a>(self)</dt><dd><tt>Run the test without collecting errors in a TestResult</tt></dd></dl> 302 303<dl><dt><a name="DisabledCases-defaultTestResult"><strong>defaultTestResult</strong></a>(self)</dt></dl> 304 305<dl><dt><a name="DisabledCases-doCleanups"><strong>doCleanups</strong></a>(self)</dt><dd><tt>Execute all cleanup functions. Normally called for you after<br> 306tearDown.</tt></dd></dl> 307 308<dl><dt><a name="DisabledCases-fail"><strong>fail</strong></a>(self, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail immediately, with the given message.</tt></dd></dl> 309 310<dl><dt><a name="DisabledCases-failIf"><strong>failIf</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 311 312<dl><dt><a name="DisabledCases-failIfAlmostEqual"><strong>failIfAlmostEqual</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 313 314<dl><dt><a name="DisabledCases-failIfEqual"><strong>failIfEqual</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 315 316<dl><dt><a name="DisabledCases-failUnless"><strong>failUnless</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 317 318<dl><dt><a name="DisabledCases-failUnlessAlmostEqual"><strong>failUnlessAlmostEqual</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 319 320<dl><dt><a name="DisabledCases-failUnlessEqual"><strong>failUnlessEqual</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 321 322<dl><dt><a name="DisabledCases-failUnlessRaises"><strong>failUnlessRaises</strong></a> = deprecated_func(*args, **kwargs)</dt></dl> 323 324<dl><dt><a name="DisabledCases-id"><strong>id</strong></a>(self)</dt></dl> 325 326<dl><dt><a name="DisabledCases-run"><strong>run</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl> 327 328<dl><dt><a name="DisabledCases-setUp"><strong>setUp</strong></a>(self)</dt><dd><tt>Hook method for setting up the test fixture before exercising it.</tt></dd></dl> 329 330<dl><dt><a name="DisabledCases-shortDescription"><strong>shortDescription</strong></a>(self)</dt><dd><tt>Returns a one-line description of the test, or None if no<br> 331description has been provided.<br> 332 <br> 333The default implementation of this method returns the first line of<br> 334the specified test method's docstring.</tt></dd></dl> 335 336<dl><dt><a name="DisabledCases-skipTest"><strong>skipTest</strong></a>(self, reason)</dt><dd><tt>Skip this test.</tt></dd></dl> 337 338<dl><dt><a name="DisabledCases-tearDown"><strong>tearDown</strong></a>(self)</dt><dd><tt>Hook method for deconstructing the test fixture after testing it.</tt></dd></dl> 339 340<hr> 341Class methods inherited from <a href="unittest.case.html#TestCase">unittest.case.TestCase</a>:<br> 342<dl><dt><a name="DisabledCases-setUpClass"><strong>setUpClass</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Hook method for setting up class fixture before running tests in the class.</tt></dd></dl> 343 344<dl><dt><a name="DisabledCases-tearDownClass"><strong>tearDownClass</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Hook method for deconstructing the class fixture after running all tests in the class.</tt></dd></dl> 345 346<hr> 347Data descriptors inherited from <a href="unittest.case.html#TestCase">unittest.case.TestCase</a>:<br> 348<dl><dt><strong>__dict__</strong></dt> 349<dd><tt>dictionary for instance variables (if defined)</tt></dd> 350</dl> 351<dl><dt><strong>__weakref__</strong></dt> 352<dd><tt>list of weak references to the object (if defined)</tt></dd> 353</dl> 354<hr> 355Data and other attributes inherited from <a href="unittest.case.html#TestCase">unittest.case.TestCase</a>:<br> 356<dl><dt><strong>failureException</strong> = <type 'exceptions.AssertionError'><dd><tt>Assertion failed.</tt></dl> 357 358<dl><dt><strong>longMessage</strong> = False</dl> 359 360<dl><dt><strong>maxDiff</strong> = 640</dl> 361 362</td></tr></table></td></tr></table> 363</body></html>