Lines Matching full:setup
15 # "When a setUp() method is defined, the test runner will run that method
18 # setUp() was used to create a fresh sequence for each test."
20 # Make sure the proper call order is maintained, even if setUp() raises
26 def setUp(): function
27 events.append('setUp')
28 raise RuntimeError('raised by setUp')
36 expected = ['startTest', 'setUp', 'addError', 'stopTest']
37 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
40 # "When a setUp() method is defined, the test runner will run that method
43 # setUp() was used to create a fresh sequence for each test."
51 def setUp(): function
52 events.append('setUp')
61 expected = ['startTest', 'setUp', 'test', 'tearDown',
63 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
66 # "When a setUp() method is defined, the test runner will run that method
69 # setUp() was used to create a fresh sequence for each test."
77 def setUp(): function
78 events.append('setUp')
87 expected = ['startTest', 'setUp', 'test', 'tearDown',
89 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
92 # "When a setUp() method is defined, the test runner will run that method
95 # setUp() was used to create a fresh sequence for each test."
103 def setUp(): function
104 events.append('setUp')
113 expected = ['startTest', 'setUp', 'test', 'tearDown', 'addError',
115 unittest.FunctionTestCase(test, setUp, tearDown).run(result)