Lines Matching full:teardown
16 # prior to each test. Likewise, if a tearDown() method is defined, the
33 def tearDown():
34 events.append('tearDown')
37 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
41 # prior to each test. Likewise, if a tearDown() method is defined, the
58 def tearDown():
59 events.append('tearDown')
61 expected = ['startTest', 'setUp', 'test', 'addError', 'tearDown',
63 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
67 # prior to each test. Likewise, if a tearDown() method is defined, the
84 def tearDown():
85 events.append('tearDown')
87 expected = ['startTest', 'setUp', 'test', 'addFailure', 'tearDown',
89 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
93 # prior to each test. Likewise, if a tearDown() method is defined, the
97 # Make sure the proper call order is maintained, even if tearDown() raises
109 def tearDown():
110 events.append('tearDown')
111 raise RuntimeError('raised by tearDown')
113 expected = ['startTest', 'setUp', 'test', 'tearDown', 'addError',
115 unittest.FunctionTestCase(test, setUp, tearDown).run(result)