Lines Matching refs:self

89     def TestSehExceptions(self, test_output):
90 self.assert_('SEH exception with code 0x2a thrown '
93 self.assert_('SEH exception with code 0x2a thrown '
96 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()'
98 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()'
100 self.assert_('SEH exception with code 0x2a thrown in SetUp()'
102 self.assert_('SEH exception with code 0x2a thrown in TearDown()'
104 self.assert_('SEH exception with code 0x2a thrown in the test body'
107 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self):
108 self.TestSehExceptions(EX_BINARY_OUTPUT)
110 def testCatchesSehExceptionsWithCxxExceptionsDisabled(self):
111 self.TestSehExceptions(BINARY_OUTPUT)
123 def testCatchesCxxExceptionsInFixtureConstructor(self):
124 self.assert_('C++ exception with description '
128 self.assert_('unexpected' not in EX_BINARY_OUTPUT,
136 def testCatchesCxxExceptionsInFixtureDestructor(self):
137 self.assert_('C++ exception with description '
141 self.assert_('CxxExceptionInDestructorTest::TearDownTestCase() '
145 def testCatchesCxxExceptionsInSetUpTestCase(self):
146 self.assert_('C++ exception with description "Standard C++ exception"'
149 self.assert_('CxxExceptionInConstructorTest::TearDownTestCase() '
152 self.assert_('CxxExceptionInSetUpTestCaseTest constructor '
155 self.assert_('CxxExceptionInSetUpTestCaseTest destructor '
158 self.assert_('CxxExceptionInSetUpTestCaseTest::SetUp() '
161 self.assert_('CxxExceptionInSetUpTestCaseTest::TearDown() '
164 self.assert_('CxxExceptionInSetUpTestCaseTest test body '
168 def testCatchesCxxExceptionsInTearDownTestCase(self):
169 self.assert_('C++ exception with description "Standard C++ exception"'
173 def testCatchesCxxExceptionsInSetUp(self):
174 self.assert_('C++ exception with description "Standard C++ exception"'
177 self.assert_('CxxExceptionInSetUpTest::TearDownTestCase() '
180 self.assert_('CxxExceptionInSetUpTest destructor '
183 self.assert_('CxxExceptionInSetUpTest::TearDown() '
186 self.assert_('unexpected' not in EX_BINARY_OUTPUT,
191 def testCatchesCxxExceptionsInTearDown(self):
192 self.assert_('C++ exception with description "Standard C++ exception"'
195 self.assert_('CxxExceptionInTearDownTest::TearDownTestCase() '
198 self.assert_('CxxExceptionInTearDownTest destructor '
202 def testCatchesCxxExceptionsInTestBody(self):
203 self.assert_('C++ exception with description "Standard C++ exception"'
206 self.assert_('CxxExceptionInTestBodyTest::TearDownTestCase() '
209 self.assert_('CxxExceptionInTestBodyTest destructor '
212 self.assert_('CxxExceptionInTestBodyTest::TearDown() '
216 def testCatchesNonStdCxxExceptions(self):
217 self.assert_('Unknown C++ exception thrown in the test body'
220 def testUnhandledCxxExceptionsAbortTheProgram(self):
231 self.assert_('Unhandled C++ exception terminating the program'
233 self.assert_('unexpected' not in uncaught_exceptions_ex_binary_output)