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