1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html>
<head>
<title>testtools.deferredruntest.AsynchronousDeferredRunTestForBrokenTwisted : API documentation</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<link href="bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="apidocs.css" type="text/css" rel="stylesheet" />
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a href="index.html" class="navbar-brand">
<a href="https://github.com/testing-cabal/testtools">testtools</a> API Documentation
</a>
</div>
</div>
</nav>
<div class="container">
<div class="page-header">
<h1 class="class"><code>testtools.deferredruntest.AsynchronousDeferredRunTestForBrokenTwisted(<a href="testtools.deferredruntest.AsynchronousDeferredRunTest.html" class="code">AsynchronousDeferredRunTest</a>)</code> <small>class documentation</small></h1>
<span id="partOf">
Part of <code><a href="testtools.html" class="code">testtools</a>.<a href="testtools.deferredruntest.html" class="code">deferredruntest</a></code>
<a href="classIndex.html#testtools.deferredruntest.AsynchronousDeferredRunTestForBrokenTwisted">(View In Hierarchy)</a>
</span>
</div>
<div class="extrasDocstring">
</div>
<div class="moduleDocstring">
<div><p>Test runner that works around Twisted brokenness re reactor junk.</p>
<p>There are many APIs within Twisted itself where a Deferred fires but
leaves cleanup work scheduled for the reactor to do. Arguably, many of
these are bugs. This runner iterates the reactor event loop a number of
times after every test, in order to shake out these buggy-but-commonplace
events.</p><table class="fieldTable"></table></div>
</div>
<div id="splitTables">
<table class="children sortable" id="id723">
<tr class="method private">
<td>Method</td>
<td><a href="testtools.deferredruntest.AsynchronousDeferredRunTestForBrokenTwisted.html#_make_spinner" class="code">_make_spinner</a></td>
<td><span>Make the <a href="testtools._spinner.Spinner.html"><code>Spinner</code></a> to be used to run the tests.</span></td>
</tr>
</table>
<p class="inheritedFrom">
Inherited from <a href="testtools.runtest.RunTest.html" class="code">RunTest</a> (via <a href="testtools.deferredruntest.AsynchronousDeferredRunTest.html" class="code">AsynchronousDeferredRunTest</a>, <a href="testtools.deferredruntest._DeferredRunTest.html" class="code">_DeferredRunTest</a>):
</p>
<table class="children sortable" id="id726">
<tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#case" class="code">case</a></td>
<td>The test case that is to be run.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#result" class="code">result</a></td>
<td>The result object a case is reporting to.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#handlers" class="code">handlers</a></td>
<td>A list of (ExceptionClass, handler_function) for
exceptions that should be caught if raised from the user
code. Exceptions that are caught are checked against this list in
first to last order. There is a catch-all of 'Exception' at the end
of the list, so to add a new exception to the list, insert it at the
front (which ensures that it will be checked before any existing base
classes in the list. If you add multiple exceptions some of which are
subclasses of each other, add the most specific exceptions last (so
they come before their parent classes in the list).</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#exception_caught" class="code">exception_caught</a></td>
<td>An object returned when _run_user catches an
exception.</td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#run" class="code">run</a></td>
<td><span>Run self.case reporting activity to result.</span></td>
</tr><tr class="baseinstancevariable private">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#_exceptions" class="code">_exceptions</a></td>
<td>A list of caught exceptions, used to do the single
reporting of error/failure/skip etc.</td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_run_one" class="code">_run_one</a></td>
<td><span>Run one test reporting to result.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_run_prepared_result" class="code">_run_prepared_result</a></td>
<td><span>Run one test reporting to result.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_got_user_exception" class="code">_got_user_exception</a></td>
<td><span>Called when user code raises an exception.</span></td>
</tr>
</table>
<p class="inheritedFrom">
Inherited from <a href="testtools.runtest.RunTest.html" class="code">RunTest</a> (via <a href="testtools.deferredruntest.AsynchronousDeferredRunTest.html" class="code">AsynchronousDeferredRunTest</a>, <a href="testtools.deferredruntest._DeferredRunTest.html" class="code">_DeferredRunTest</a>):
</p>
<table class="children sortable" id="id726">
<tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#case" class="code">case</a></td>
<td>The test case that is to be run.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#result" class="code">result</a></td>
<td>The result object a case is reporting to.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#handlers" class="code">handlers</a></td>
<td>A list of (ExceptionClass, handler_function) for
exceptions that should be caught if raised from the user
code. Exceptions that are caught are checked against this list in
first to last order. There is a catch-all of 'Exception' at the end
of the list, so to add a new exception to the list, insert it at the
front (which ensures that it will be checked before any existing base
classes in the list. If you add multiple exceptions some of which are
subclasses of each other, add the most specific exceptions last (so
they come before their parent classes in the list).</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#exception_caught" class="code">exception_caught</a></td>
<td>An object returned when _run_user catches an
exception.</td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#run" class="code">run</a></td>
<td><span>Run self.case reporting activity to result.</span></td>
</tr><tr class="baseinstancevariable private">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#_exceptions" class="code">_exceptions</a></td>
<td>A list of caught exceptions, used to do the single
reporting of error/failure/skip etc.</td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_run_one" class="code">_run_one</a></td>
<td><span>Run one test reporting to result.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_run_prepared_result" class="code">_run_prepared_result</a></td>
<td><span>Run one test reporting to result.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_got_user_exception" class="code">_got_user_exception</a></td>
<td><span>Called when user code raises an exception.</span></td>
</tr>
</table>
<p class="inheritedFrom">
Inherited from <a href="testtools.runtest.RunTest.html" class="code">RunTest</a> (via <a href="testtools.deferredruntest.AsynchronousDeferredRunTest.html" class="code">AsynchronousDeferredRunTest</a>, <a href="testtools.deferredruntest._DeferredRunTest.html" class="code">_DeferredRunTest</a>):
</p>
<table class="children sortable" id="id726">
<tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#case" class="code">case</a></td>
<td>The test case that is to be run.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#result" class="code">result</a></td>
<td>The result object a case is reporting to.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#handlers" class="code">handlers</a></td>
<td>A list of (ExceptionClass, handler_function) for
exceptions that should be caught if raised from the user
code. Exceptions that are caught are checked against this list in
first to last order. There is a catch-all of 'Exception' at the end
of the list, so to add a new exception to the list, insert it at the
front (which ensures that it will be checked before any existing base
classes in the list. If you add multiple exceptions some of which are
subclasses of each other, add the most specific exceptions last (so
they come before their parent classes in the list).</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#exception_caught" class="code">exception_caught</a></td>
<td>An object returned when _run_user catches an
exception.</td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#run" class="code">run</a></td>
<td><span>Run self.case reporting activity to result.</span></td>
</tr><tr class="baseinstancevariable private">
<td>Instance Variable</td>
<td><a href="testtools.runtest.RunTest.html#_exceptions" class="code">_exceptions</a></td>
<td>A list of caught exceptions, used to do the single
reporting of error/failure/skip etc.</td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_run_one" class="code">_run_one</a></td>
<td><span>Run one test reporting to result.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_run_prepared_result" class="code">_run_prepared_result</a></td>
<td><span>Run one test reporting to result.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.runtest.RunTest.html#_got_user_exception" class="code">_got_user_exception</a></td>
<td><span>Called when user code raises an exception.</span></td>
</tr>
</table>
</div>
<div id="childList">
<div class="function">
<a name="testtools.deferredruntest.AsynchronousDeferredRunTestForBrokenTwisted._make_spinner">
</a>
<a name="_make_spinner">
</a>
<div class="functionHeader">
def
_make_spinner(self):
</div>
<div class="docstring functionBody">
<div class="interfaceinfo">overrides <a href="testtools.deferredruntest.AsynchronousDeferredRunTest.html#_make_spinner" class="code">testtools.deferredruntest.AsynchronousDeferredRunTest._make_spinner</a></div>
<div>Make the <a href="testtools._spinner.Spinner.html"><code>Spinner</code></a> to be used to run the tests.<table class="fieldTable"></table></div>
</div>
</div>
</div>
<address>
<a href="index.html">API Documentation</a> for <a href="https://github.com/testing-cabal/testtools">testtools</a>, generated by <a href="https://github.com/twisted/pydoctor/">pydoctor</a> at 2015-07-01 16:11:28.
</address>
</div>
</body>
</html>
|