OLD | NEW |
| (Empty) |
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 hre
f="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=t
op><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></tabl
e></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 <str
ong>DisabledCases</strong></a>(<a href="unittest.case.html#TestCase">unittest.ca
se.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&
nbsp;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> | |
56 Methods 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</stron
g></a>(self)</dt></dl> | |
62 | |
63 <dl><dt><a name="DisabledCases-testHasTabs"><strong>testHasTabs</strong></a>(sel
f)</dt></dl> | |
64 | |
65 <dl><dt><a name="DisabledCases-testMacOnly"><strong>testMacOnly</strong></a>(sel
f)</dt></dl> | |
66 | |
67 <dl><dt><a name="DisabledCases-testMavericksOnly"><strong>testMavericksOnly</str
ong></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>(s
elf)</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</s
trong></a>(self)</dt></dl> | |
82 | |
83 <hr> | |
84 Methods inherited from <a href="unittest.case.html#TestCase">unittest.case.TestC
ase</a>:<br> | |
85 <dl><dt><a name="DisabledCases-__call__"><strong>__call__</strong></a>(self, *ar
gs, **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, met
hodName<font color="#909090">='runTest'</font>)</dt><dd><tt>Create an
instance of the class that will use the
named test<br> | |
92 method when executed. Raises a ValueError if
the instance does<br> | |
93 not have a method with the specified name.</t
t></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> | |
102 completed. Functions added are called on a LI
FO basis and are<br> | |
103 called after tearDown on test failure or succ
ess.<br> | |
104 <br> | |
105 Cleanup items are called even if setUp fails&
nbsp;(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 spec
ific assertEqual style function to compare a
type.<br> | |
108 <br> | |
109 This method is for use by <a href="unittest.case.h
tml#TestCase">TestCase</a> subclasses that need to regi
ster<br> | |
110 their own type equality functions to provide
nicer error messages.<br> | |
111 <br> | |
112 Args:<br> | |
113 typeobj: The data type to call&
nbsp;this function on when both values<br> | |
114 are 
;of the same type in <a href="#DisabledCases-assertEqua
l">assertEqual</a>().<br> | |
115 function: The callable taking two&nb
sp;arguments and an optional<br> | |
116 msg=&nbs
p;argument that raises self.<strong>failureException</strong>&nbs
p;with a<br> | |
117 useful&n
bsp;error message when the two arguments are
not equal.</tt></dd></dl> | |
118 | |
119 <dl><dt><a name="DisabledCases-assertAlmostEqual"><strong>assertAlmostEqual</str
ong></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&nb
sp;determined by their<br> | |
120 difference rounded to the given number of dec
imal places<br> | |
121 (default 7) and comparing to zero, or by 
;comparing that the<br> | |
122 between the two objects is more than the 
;given delta.<br> | |
123 <br> | |
124 Note that decimal places (from zero) are usua
lly not the same<br> | |
125 as significant digits (measured from the most 
;signficant digit).<br> | |
126 <br> | |
127 If the two objects compare equal then they&nb
sp;will automatically<br> | |
128 compare almost equal.</tt></dd></dl> | |
129 | |
130 <dl><dt><a name="DisabledCases-assertAlmostEquals"><strong>assertAlmostEquals</s
trong></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&n
bsp;unequal as determined by their<br> | |
131 difference rounded to the given number of dec
imal places<br> | |
132 (default 7) and comparing to zero, or by 
;comparing that the<br> | |
133 between the two objects is more than the 
;given delta.<br> | |
134 <br> | |
135 Note that decimal places (from zero) are usua
lly not the same<br> | |
136 as significant digits (measured from the most 
;signficant digit).<br> | |
137 <br> | |
138 If the two objects compare equal then they&nb
sp;will automatically<br> | |
139 compare almost equal.</tt></dd></dl> | |
140 | |
141 <dl><dt><a name="DisabledCases-assertDictContainsSubset"><strong>assertDictConta
insSubset</strong></a>(self, expected, actual, msg<font color="#909090">=None</f
ont>)</dt><dd><tt>Checks whether actual is a superset&n
bsp;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>(sel
f, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail i
f the two objects are unequal as determined&n
bsp;by the '=='<br> | |
146 operator.</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&n
bsp;determined by the '=='<br> | |
149 operator.</tt></dd></dl> | |
150 | |
151 <dl><dt><a name="DisabledCases-assertFalse"><strong>assertFalse</strong></a>(sel
f, 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&n
bsp;<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</s
trong></a>(self, a, b, msg<font color="#909090">=None</font>)</dt><dd><tt>Just&n
bsp;like <a href="#DisabledCases-assertTrue">assertTrue</a>(a >=&nb
sp;b), but with a nicer default message.</tt></dd>
</dl> | |
156 | |
157 <dl><dt><a name="DisabledCases-assertIn"><strong>assertIn</strong></a>(self, mem
ber, container, msg<font color="#909090">=None</font>)</dt><dd><tt>Just lik
e <a href="#DisabledCases-assertTrue">assertTrue</a>(a in b),&nbs
p;but with a nicer default message.</tt></dd></dl> | |
158 | |
159 <dl><dt><a name="DisabledCases-assertIs"><strong>assertIs</strong></a>(self, exp
r1, expr2, msg<font color="#909090">=None</font>)</dt><dd><tt>Just like&nbs
p;<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</stron
g></a>(self, obj, cls, msg<font color="#909090">=None</font>)</dt><dd><tt>Same&n
bsp;as <a href="#DisabledCases-assertTrue">assertTrue</a>(isinstance(obj,&n
bsp;cls)), with a nicer<br> | |
162 default message.</tt></dd></dl> | |
163 | |
164 <dl><dt><a name="DisabledCases-assertIsNone"><strong>assertIsNone</strong></a>(s
elf, obj, msg<font color="#909090">=None</font>)</dt><dd><tt>Same as <
a href="#DisabledCases-assertTrue">assertTrue</a>(obj is None), w
ith a nicer default message.</tt></dd></dl> | |
165 | |
166 <dl><dt><a name="DisabledCases-assertIsNot"><strong>assertIsNot</strong></a>(sel
f, expr1, expr2, msg<font color="#909090">=None</font>)</dt><dd><tt>Just li
ke <a href="#DisabledCases-assertTrue">assertTrue</a>(a is not&nb
sp;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</stron
g></a>(self, expected_seq, actual_seq, msg<font color="#909090">=None</font>)</d
t><dd><tt>An unordered sequence specific comparison. It
asserts that<br> | |
171 actual_seq and expected_seq have the same element&
nbsp;counts.<br> | |
172 Equivalent to::<br> | |
173 <br> | |
174 <a href="#DisabledCases-assertEqual">assertEqual</a>(Cou
nter(iter(actual_seq)),<br> | |
175 &n
bsp; Counter(iter(expected_seq)))<br> | |
176 <br> | |
177 Asserts that each element has the same count&
nbsp;in both sequences.<br> | |
178 Example:<br> | |
179 - [0, 1, 1] and [1, 0,&nbs
p;1] compare equal.<br> | |
180 - [0, 0, 1] and [0, 1]&nbs
p;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&n
bsp;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 li
ke <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&nb
sp;list-specific equality assertion.<br> | |
187 <br> | |
188 Args:<br> | |
189 list1: The first list to compar
e.<br> | |
190 list2: The second list to compa
re.<br> | |
191 msg: Optional message to use on
failure instead of a list of<br> | |
192 differen
ces.</tt></dd></dl> | |
193 | |
194 <dl><dt><a name="DisabledCases-assertMultiLineEqual"><strong>assertMultiLineEqua
l</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><
dd><tt>Assert that two multi-line strings are equa
l.</tt></dd></dl> | |
195 | |
196 <dl><dt><a name="DisabledCases-assertNotAlmostEqual"><strong>assertNotAlmostEqua
l</strong></a>(self, first, second, places<font color="#909090">=None</font>, ms
g<font color="#909090">=None</font>, delta<font color="#909090">=None</font>)</d
t><dd><tt>Fail if the two objects are equal a
s determined by their<br> | |
197 difference rounded to the given number of dec
imal places<br> | |
198 (default 7) and comparing to zero, or by 
;comparing that the<br> | |
199 between the two objects is less than the 
;given delta.<br> | |
200 <br> | |
201 Note that decimal places (from zero) are usua
lly not the same<br> | |
202 as significant digits (measured from the most 
;signficant digit).<br> | |
203 <br> | |
204 Objects that are equal automatically fail.</tt></dd></d
l> | |
205 | |
206 <dl><dt><a name="DisabledCases-assertNotAlmostEquals"><strong>assertNotAlmostEqu
als</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&n
bsp;are equal as determined by their<br> | |
207 difference rounded to the given number of dec
imal places<br> | |
208 (default 7) and comparing to zero, or by 
;comparing that the<br> | |
209 between the two objects is less than the 
;given delta.<br> | |
210 <br> | |
211 Note that decimal places (from zero) are usua
lly not the same<br> | |
212 as significant digits (measured from the most 
;signficant digit).<br> | |
213 <br> | |
214 Objects that are equal automatically fail.</tt></dd></d
l> | |
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&
nbsp;if the two objects are equal as determin
ed by the '!='<br> | |
217 operator.</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&nb
sp;as determined by the '!='<br> | |
220 operator.</tt></dd></dl> | |
221 | |
222 <dl><dt><a name="DisabledCases-assertNotIn"><strong>assertNotIn</strong></a>(sel
f, member, container, msg<font color="#909090">=None</font>)</dt><dd><tt>Just&nb
sp;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>assertNotRegexpMa
tches</strong></a>(self, text, unexpected_regexp, msg<font color="#909090">=None
</font>)</dt><dd><tt>Fail the test if the text mat
ches the regular expression.</tt></dd></dl> | |
227 | |
228 <dl><dt><a name="DisabledCases-assertRaises"><strong>assertRaises</strong></a>(s
elf, excClass, callableObj<font color="#909090">=None</font>, *args, **kwargs)</
dt><dd><tt>Fail unless an exception of class excCl
ass is raised<br> | |
229 by callableObj when invoked with arguments args&nb
sp;and keyword<br> | |
230 arguments kwargs. If a different type of exce
ption is<br> | |
231 raised, it will not be caught, and the t
est case will be<br> | |
232 deemed to have suffered an error, exactly as&
nbsp;for an<br> | |
233 unexpected exception.<br> | |
234 <br> | |
235 If called with callableObj omitted or None, w
ill return a<br> | |
236 context object used like this::<br> | |
237 <br> | |
238 with <a href="#DisabledCases-assertRaises">as
sertRaises</a>(SomeException):<br> | |
239 do_something()<br> | |
240 <br> | |
241 The context manager keeps a reference to the&
nbsp;exception as<br> | |
242 the 'exception' attribute. This allows you to 
;inspect the<br> | |
243 exception after the assertion::<br> | |
244 <br> | |
245 with <a href="#DisabledCases-assertRaises">assertRa
ises</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</s
trong></a>(self, expected_exception, expected_regexp, callable_obj<font color="#
909090">=None</font>, *args, **kwargs)</dt><dd><tt>Asserts that the&nb
sp;message in a raised exception matches a re
gexp.<br> | |
251 <br> | |
252 Args:<br> | |
253 expected_exception: Exception class expec
ted 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<f
ont color="#909090">=None</font>)</dt><dd><tt>An equality assertion&nb
sp;for ordered sequences (like lists and tuples).<
br> | |
263 <br> | |
264 For the purposes of this function, a valid&nb
sp;ordered sequence type is one<br> | |
265 which can be indexed, has a length, and
has an equality operator.<br> | |
266 <br> | |
267 Args:<br> | |
268 seq1: The first sequence to com
pare.<br> | |
269 seq2: The second sequence to co
mpare.<br> | |
270 seq_type: The expected datatype of&n
bsp;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 differen
ces.</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 s
et-specific equality assertion.<br> | |
276 <br> | |
277 Args:<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 differen
ces.<br> | |
282 <br> | |
283 assertSetEqual uses ducktyping to support different&nbs
p;types of sets, and<br> | |
284 is optimized for sets specifically (parameters mus
t support a<br> | |
285 difference 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 t
he expression is true.</tt></dd></dl> | |
288 | |
289 <dl><dt><a name="DisabledCases-assertTupleEqual"><strong>assertTupleEqual</stron
g></a>(self, tuple1, tuple2, msg<font color="#909090">=None</font>)</dt><dd><tt>
A tuple-specific equality assertion.<br> | |
290 <br> | |
291 Args:<br> | |
292 tuple1: The first tuple to comp
are.<br> | |
293 tuple2: The second tuple to com
pare.<br> | |
294 msg: Optional message to use on
failure instead of a list of<br> | |
295 differen
ces.</tt></dd></dl> | |
296 | |
297 <dl><dt><a name="DisabledCases-assert_"><strong>assert_</strong></a> = assertTru
e(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</str
ong></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 ca
lled for you after<br> | |
306 tearDown.</tt></dd></dl> | |
307 | |
308 <dl><dt><a name="DisabledCases-fail"><strong>fail</strong></a>(self, msg<font co
lor="#909090">=None</font>)</dt><dd><tt>Fail immediately, with th
e 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</str
ong></a> = deprecated_func(*args, **kwargs)</dt></dl> | |
313 | |
314 <dl><dt><a name="DisabledCases-failIfEqual"><strong>failIfEqual</strong></a> = d
eprecated_func(*args, **kwargs)</dt></dl> | |
315 | |
316 <dl><dt><a name="DisabledCases-failUnless"><strong>failUnless</strong></a> = dep
recated_func(*args, **kwargs)</dt></dl> | |
317 | |
318 <dl><dt><a name="DisabledCases-failUnlessAlmostEqual"><strong>failUnlessAlmostEq
ual</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</stron
g></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 c
olor="#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 fixtur
e before exercising it.</tt></dd></dl> | |
329 | |
330 <dl><dt><a name="DisabledCases-shortDescription"><strong>shortDescription</stron
g></a>(self)</dt><dd><tt>Returns a one-line description of&n
bsp;the test, or None if no<br> | |
331 description has been provided.<br> | |
332 <br> | |
333 The default implementation of this method returns&
nbsp;the first line of<br> | |
334 the specified test method's docstring.</tt></dd></dl> | |
335 | |
336 <dl><dt><a name="DisabledCases-skipTest"><strong>skipTest</strong></a>(self, rea
son)</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 f
ixture after testing it.</tt></dd></dl> | |
339 | |
340 <hr> | |
341 Class 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__.ht
ml#type">__builtin__.type</a></font></font></dt><dd><tt>Hook method fo
r setting up class fixture before running tes
ts 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="__builti
n__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Hook method&n
bsp;for deconstructing the class fixture after run
ning all tests in the class.</tt></dd></dl> | |
345 | |
346 <hr> | |
347 Data descriptors inherited from <a href="unittest.case.html#TestCase">unittest.c
ase.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> | |
355 Data and other attributes inherited from <a href="unittest.case.html#TestCase">u
nittest.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> | |
OLD | NEW |