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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
|
<?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.tests.test_deferredruntest.TestAsynchronousDeferredRunTest : 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.tests.test_deferredruntest.TestAsynchronousDeferredRunTest(<a href="testtools.tests.test_spinner.NeedsTwistedTestCase.html" class="code">NeedsTwistedTestCase</a>)</code> <small>class documentation</small></h1>
<span id="partOf">
Part of <code><a href="testtools.html" class="code">testtools</a>.<a href="testtools.tests.html" class="code">tests</a>.<a href="testtools.tests.test_deferredruntest.html" class="code">test_deferredruntest</a></code>
<a href="classIndex.html#testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest">(View In Hierarchy)</a>
</span>
</div>
<div class="extrasDocstring">
</div>
<div class="moduleDocstring">
<div class="undocumented">Undocumented</div>
</div>
<div id="splitTables">
<table class="children sortable" id="id643">
<tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#make_reactor" class="code">make_reactor</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#make_result" class="code">make_result</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#make_runner" class="code">make_runner</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#make_timeout" class="code">make_timeout</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_setUp_returns_deferred_that_fires_later" class="code">test_setUp_returns_deferred_that_fires_later</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_calls_setUp_test_tearDown_in_sequence" class="code">test_calls_setUp_test_tearDown_in_sequence</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_async_cleanups" class="code">test_async_cleanups</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_clean_reactor" class="code">test_clean_reactor</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_exports_reactor" class="code">test_exports_reactor</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_unhandled_error_from_deferred" class="code">test_unhandled_error_from_deferred</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_unhandled_error_from_deferred_combined_with_error" class="code">test_unhandled_error_from_deferred_combined_with_error</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_keyboard_interrupt_stops_test_run" class="code">test_keyboard_interrupt_stops_test_run</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_fast_keyboard_interrupt_stops_test_run" class="code">test_fast_keyboard_interrupt_stops_test_run</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_timeout_causes_test_error" class="code">test_timeout_causes_test_error</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_convenient_construction" class="code">test_convenient_construction</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_use_convenient_factory" class="code">test_use_convenient_factory</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_convenient_construction_default_reactor" class="code">test_convenient_construction_default_reactor</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_convenient_construction_default_timeout" class="code">test_convenient_construction_default_timeout</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_convenient_construction_default_debugging" class="code">test_convenient_construction_default_debugging</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_deferred_error" class="code">test_deferred_error</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_only_addError_once" class="code">test_only_addError_once</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_log_err_is_error" class="code">test_log_err_is_error</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_log_err_flushed_is_success" class="code">test_log_err_flushed_is_success</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_log_in_details" class="code">test_log_in_details</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_debugging_unchanged_during_test_by_default" class="code">test_debugging_unchanged_during_test_by_default</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="method">
<td>Method</td>
<td><a href="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.html#test_debugging_enabled_during_test_with_debug_flag" class="code">test_debugging_enabled_during_test_with_debug_flag</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr>
</table>
<p class="inheritedFrom">
Inherited from <a href="testtools.testcase.TestCase.html" class="code">TestCase</a> (via <a href="testtools.tests.test_spinner.NeedsTwistedTestCase.html" class="code">NeedsTwistedTestCase</a>):
</p>
<table class="children sortable" id="id645">
<tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.testcase.TestCase.html#exception_handlers" class="code">exception_handlers</a></td>
<td>Exceptions to catch from setUp, runTest and
tearDown. This list is able to be modified at any time and consists of
(exception_class, handler(case, result, exception_value)) pairs.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.testcase.TestCase.html#force_failure" class="code">force_failure</a></td>
<td>Force testtools.RunTest to fail the test after the
test has completed.</td>
</tr><tr class="baseclassvariable">
<td>Class Variable</td>
<td><a href="testtools.testcase.TestCase.html#run_tests_with" class="code">run_tests_with</a></td>
<td>A factory to make the <tt class="rst-docutils literal">RunTest</tt> to run tests with.
Defaults to <tt class="rst-docutils literal">RunTest</tt>. The factory is expected to take a test case
and an optional list of exception handlers.</td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#__init__" class="code">__init__</a></td>
<td><span>Construct a TestCase.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#__eq__" class="code">__eq__</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#__repr__" class="code">__repr__</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addDetail" class="code">addDetail</a></td>
<td><span>Add a detail to be reported with this test's outcome.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#getDetails" class="code">getDetails</a></td>
<td><span>Get the details dict that will be reported with this test's outcome.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#patch" class="code">patch</a></td>
<td><span>Monkey-patch 'obj.attribute' to 'value' while the test is running.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#shortDescription" class="code">shortDescription</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#skipTest" class="code">skipTest</a></td>
<td><span>Cause this test to be skipped.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addCleanup" class="code">addCleanup</a></td>
<td><span>Add a cleanup function to be called after tearDown.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addOnException" class="code">addOnException</a></td>
<td><span>Add a handler to be called when an exception occurs in test code.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertEqual" class="code">assertEqual</a></td>
<td><span>Assert that 'expected' is equal to 'observed'.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIn" class="code">assertIn</a></td>
<td><span>Assert that needle is in haystack.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsNone" class="code">assertIsNone</a></td>
<td><span>Assert that 'observed' is equal to None.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsNotNone" class="code">assertIsNotNone</a></td>
<td><span>Assert that 'observed' is not equal to None.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIs" class="code">assertIs</a></td>
<td><span>Assert that 'expected' is 'observed'.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsNot" class="code">assertIsNot</a></td>
<td><span>Assert that 'expected' is not 'observed'.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertNotIn" class="code">assertNotIn</a></td>
<td><span>Assert that needle is not in haystack.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsInstance" class="code">assertIsInstance</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertRaises" class="code">assertRaises</a></td>
<td><span class="undocumented">No summary</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertThat" class="code">assertThat</a></td>
<td><span>Assert that matchee is matched by matcher.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addDetailUniqueName" class="code">addDetailUniqueName</a></td>
<td><span>Add a detail to the test, but ensure it's name is unique.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#expectThat" class="code">expectThat</a></td>
<td><span>Check that matchee is matched by matcher, but delay the assertion failure.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#defaultTestResult" class="code">defaultTestResult</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#expectFailure" class="code">expectFailure</a></td>
<td><span>Check that a test fails in a particular way.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#getUniqueInteger" class="code">getUniqueInteger</a></td>
<td><span>Get an integer unique to this test.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#getUniqueString" class="code">getUniqueString</a></td>
<td><span>Get a string unique to this test.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#onException" class="code">onException</a></td>
<td><span>Called when an exception propogates from test code.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#run" class="code">run</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#useFixture" class="code">useFixture</a></td>
<td><span>Use fixture in a test case.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#tearDown" class="code">tearDown</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_formatTypes" class="code">_formatTypes</a></td>
<td><span>Format a class or a bunch of classes for display in an error.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_add_reason" class="code">_add_reason</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_matchHelper" class="code">_matchHelper</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_error" class="code">_report_error</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_expected_failure" class="code">_report_expected_failure</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_failure" class="code">_report_failure</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_skip" class="code">_report_skip</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_traceback" class="code">_report_traceback</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_unexpected_success" class="code">_report_unexpected_success</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_run_setup" class="code">_run_setup</a></td>
<td><span>Run the setUp function for this test.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_run_teardown" class="code">_run_teardown</a></td>
<td><span>Run the tearDown function for this test.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_get_test_method" class="code">_get_test_method</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_run_test_method" class="code">_run_test_method</a></td>
<td><span>Run the test method for this test.</span></td>
</tr>
</table>
<p class="inheritedFrom">
Inherited from <a href="testtools.testcase.TestCase.html" class="code">TestCase</a> (via <a href="testtools.tests.test_spinner.NeedsTwistedTestCase.html" class="code">NeedsTwistedTestCase</a>):
</p>
<table class="children sortable" id="id645">
<tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.testcase.TestCase.html#exception_handlers" class="code">exception_handlers</a></td>
<td>Exceptions to catch from setUp, runTest and
tearDown. This list is able to be modified at any time and consists of
(exception_class, handler(case, result, exception_value)) pairs.</td>
</tr><tr class="baseinstancevariable">
<td>Instance Variable</td>
<td><a href="testtools.testcase.TestCase.html#force_failure" class="code">force_failure</a></td>
<td>Force testtools.RunTest to fail the test after the
test has completed.</td>
</tr><tr class="baseclassvariable">
<td>Class Variable</td>
<td><a href="testtools.testcase.TestCase.html#run_tests_with" class="code">run_tests_with</a></td>
<td>A factory to make the <tt class="rst-docutils literal">RunTest</tt> to run tests with.
Defaults to <tt class="rst-docutils literal">RunTest</tt>. The factory is expected to take a test case
and an optional list of exception handlers.</td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#__init__" class="code">__init__</a></td>
<td><span>Construct a TestCase.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#__eq__" class="code">__eq__</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#__repr__" class="code">__repr__</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addDetail" class="code">addDetail</a></td>
<td><span>Add a detail to be reported with this test's outcome.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#getDetails" class="code">getDetails</a></td>
<td><span>Get the details dict that will be reported with this test's outcome.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#patch" class="code">patch</a></td>
<td><span>Monkey-patch 'obj.attribute' to 'value' while the test is running.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#shortDescription" class="code">shortDescription</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#skipTest" class="code">skipTest</a></td>
<td><span>Cause this test to be skipped.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addCleanup" class="code">addCleanup</a></td>
<td><span>Add a cleanup function to be called after tearDown.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addOnException" class="code">addOnException</a></td>
<td><span>Add a handler to be called when an exception occurs in test code.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertEqual" class="code">assertEqual</a></td>
<td><span>Assert that 'expected' is equal to 'observed'.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIn" class="code">assertIn</a></td>
<td><span>Assert that needle is in haystack.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsNone" class="code">assertIsNone</a></td>
<td><span>Assert that 'observed' is equal to None.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsNotNone" class="code">assertIsNotNone</a></td>
<td><span>Assert that 'observed' is not equal to None.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIs" class="code">assertIs</a></td>
<td><span>Assert that 'expected' is 'observed'.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsNot" class="code">assertIsNot</a></td>
<td><span>Assert that 'expected' is not 'observed'.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertNotIn" class="code">assertNotIn</a></td>
<td><span>Assert that needle is not in haystack.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertIsInstance" class="code">assertIsInstance</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertRaises" class="code">assertRaises</a></td>
<td><span class="undocumented">No summary</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#assertThat" class="code">assertThat</a></td>
<td><span>Assert that matchee is matched by matcher.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#addDetailUniqueName" class="code">addDetailUniqueName</a></td>
<td><span>Add a detail to the test, but ensure it's name is unique.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#expectThat" class="code">expectThat</a></td>
<td><span>Check that matchee is matched by matcher, but delay the assertion failure.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#defaultTestResult" class="code">defaultTestResult</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#expectFailure" class="code">expectFailure</a></td>
<td><span>Check that a test fails in a particular way.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#getUniqueInteger" class="code">getUniqueInteger</a></td>
<td><span>Get an integer unique to this test.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#getUniqueString" class="code">getUniqueString</a></td>
<td><span>Get a string unique to this test.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#onException" class="code">onException</a></td>
<td><span>Called when an exception propogates from test code.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#run" class="code">run</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#useFixture" class="code">useFixture</a></td>
<td><span>Use fixture in a test case.</span></td>
</tr><tr class="basemethod">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#tearDown" class="code">tearDown</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_formatTypes" class="code">_formatTypes</a></td>
<td><span>Format a class or a bunch of classes for display in an error.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_add_reason" class="code">_add_reason</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_matchHelper" class="code">_matchHelper</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_error" class="code">_report_error</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_expected_failure" class="code">_report_expected_failure</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_failure" class="code">_report_failure</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_skip" class="code">_report_skip</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_traceback" class="code">_report_traceback</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basestaticmethod private">
<td>Static Method</td>
<td><a href="testtools.testcase.TestCase.html#_report_unexpected_success" class="code">_report_unexpected_success</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_run_setup" class="code">_run_setup</a></td>
<td><span>Run the setUp function for this test.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_run_teardown" class="code">_run_teardown</a></td>
<td><span>Run the tearDown function for this test.</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_get_test_method" class="code">_get_test_method</a></td>
<td><span class="undocumented">Undocumented</span></td>
</tr><tr class="basemethod private">
<td>Method</td>
<td><a href="testtools.testcase.TestCase.html#_run_test_method" class="code">_run_test_method</a></td>
<td><span>Run the test method for this test.</span></td>
</tr>
</table>
</div>
<div id="childList">
<div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.make_reactor">
</a>
<a name="make_reactor">
</a>
<div class="functionHeader">
def
make_reactor(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.make_result">
</a>
<a name="make_result">
</a>
<div class="functionHeader">
def
make_result(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.make_runner">
</a>
<a name="make_runner">
</a>
<div class="functionHeader">
def
make_runner(self, test, timeout=None):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.make_timeout">
</a>
<a name="make_timeout">
</a>
<div class="functionHeader">
def
make_timeout(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_setUp_returns_deferred_that_fires_later">
</a>
<a name="test_setUp_returns_deferred_that_fires_later">
</a>
<div class="functionHeader">
def
test_setUp_returns_deferred_that_fires_later(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_calls_setUp_test_tearDown_in_sequence">
</a>
<a name="test_calls_setUp_test_tearDown_in_sequence">
</a>
<div class="functionHeader">
def
test_calls_setUp_test_tearDown_in_sequence(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_async_cleanups">
</a>
<a name="test_async_cleanups">
</a>
<div class="functionHeader">
def
test_async_cleanups(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_clean_reactor">
</a>
<a name="test_clean_reactor">
</a>
<div class="functionHeader">
def
test_clean_reactor(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_exports_reactor">
</a>
<a name="test_exports_reactor">
</a>
<div class="functionHeader">
def
test_exports_reactor(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_unhandled_error_from_deferred">
</a>
<a name="test_unhandled_error_from_deferred">
</a>
<div class="functionHeader">
def
test_unhandled_error_from_deferred(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_unhandled_error_from_deferred_combined_with_error">
</a>
<a name="test_unhandled_error_from_deferred_combined_with_error">
</a>
<div class="functionHeader">
def
test_unhandled_error_from_deferred_combined_with_error(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_keyboard_interrupt_stops_test_run">
</a>
<a name="test_keyboard_interrupt_stops_test_run">
</a>
<div class="functionHeader">
@skipIf(os.name != 'posix', 'Sending SIGINT with os.kill is posix only')<br />
def
test_keyboard_interrupt_stops_test_run(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_fast_keyboard_interrupt_stops_test_run">
</a>
<a name="test_fast_keyboard_interrupt_stops_test_run">
</a>
<div class="functionHeader">
@skipIf(os.name != 'posix', 'Sending SIGINT with os.kill is posix only')<br />
def
test_fast_keyboard_interrupt_stops_test_run(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_timeout_causes_test_error">
</a>
<a name="test_timeout_causes_test_error">
</a>
<div class="functionHeader">
def
test_timeout_causes_test_error(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_convenient_construction">
</a>
<a name="test_convenient_construction">
</a>
<div class="functionHeader">
def
test_convenient_construction(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_use_convenient_factory">
</a>
<a name="test_use_convenient_factory">
</a>
<div class="functionHeader">
def
test_use_convenient_factory(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_convenient_construction_default_reactor">
</a>
<a name="test_convenient_construction_default_reactor">
</a>
<div class="functionHeader">
def
test_convenient_construction_default_reactor(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_convenient_construction_default_timeout">
</a>
<a name="test_convenient_construction_default_timeout">
</a>
<div class="functionHeader">
def
test_convenient_construction_default_timeout(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_convenient_construction_default_debugging">
</a>
<a name="test_convenient_construction_default_debugging">
</a>
<div class="functionHeader">
def
test_convenient_construction_default_debugging(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_deferred_error">
</a>
<a name="test_deferred_error">
</a>
<div class="functionHeader">
def
test_deferred_error(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_only_addError_once">
</a>
<a name="test_only_addError_once">
</a>
<div class="functionHeader">
def
test_only_addError_once(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_log_err_is_error">
</a>
<a name="test_log_err_is_error">
</a>
<div class="functionHeader">
def
test_log_err_is_error(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_log_err_flushed_is_success">
</a>
<a name="test_log_err_flushed_is_success">
</a>
<div class="functionHeader">
def
test_log_err_flushed_is_success(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_log_in_details">
</a>
<a name="test_log_in_details">
</a>
<div class="functionHeader">
def
test_log_in_details(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_debugging_unchanged_during_test_by_default">
</a>
<a name="test_debugging_unchanged_during_test_by_default">
</a>
<div class="functionHeader">
def
test_debugging_unchanged_during_test_by_default(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</div>
</div>
</div><div class="function">
<a name="testtools.tests.test_deferredruntest.TestAsynchronousDeferredRunTest.test_debugging_enabled_during_test_with_debug_flag">
</a>
<a name="test_debugging_enabled_during_test_with_debug_flag">
</a>
<div class="functionHeader">
def
test_debugging_enabled_during_test_with_debug_flag(self):
</div>
<div class="docstring functionBody">
<div class="undocumented">Undocumented</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>
|