Lines Matching refs:self

76     def TestSehExceptions(self, test_output):
77 self.assert_('SEH exception with code 0x2a thrown '
80 self.assert_('SEH exception with code 0x2a thrown '
83 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()'
85 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()'
87 self.assert_('SEH exception with code 0x2a thrown in SetUp()'
89 self.assert_('SEH exception with code 0x2a thrown in TearDown()'
91 self.assert_('SEH exception with code 0x2a thrown in the test body'
94 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self):
95 self.TestSehExceptions(EX_BINARY_OUTPUT)
97 def testCatchesSehExceptionsWithCxxExceptionsDisabled(self):
98 self.TestSehExceptions(BINARY_OUTPUT)
110 def testCatchesCxxExceptionsInFixtureConstructor(self):
111 self.assert_('C++ exception with description '
115 self.assert_('unexpected' not in EX_BINARY_OUTPUT,
120 def testCatchesCxxExceptionsInFixtureDestructor(self):
121 self.assert_('C++ exception with description '
125 self.assert_('CxxExceptionInDestructorTest::TearDownTestCase() '
129 def testCatchesCxxExceptionsInSetUpTestCase(self):
130 self.assert_('C++ exception with description "Standard C++ exception"'
133 self.assert_('CxxExceptionInConstructorTest::TearDownTestCase() '
136 self.assert_('CxxExceptionInSetUpTestCaseTest constructor '
139 self.assert_('CxxExceptionInSetUpTestCaseTest destructor '
142 self.assert_('CxxExceptionInSetUpTestCaseTest::SetUp() '
145 self.assert_('CxxExceptionInSetUpTestCaseTest::TearDown() '
148 self.assert_('CxxExceptionInSetUpTestCaseTest test body '
152 def testCatchesCxxExceptionsInTearDownTestCase(self):
153 self.assert_('C++ exception with description "Standard C++ exception"'
157 def testCatchesCxxExceptionsInSetUp(self):
158 self.assert_('C++ exception with description "Standard C++ exception"'
161 self.assert_('CxxExceptionInSetUpTest::TearDownTestCase() '
164 self.assert_('CxxExceptionInSetUpTest destructor '
167 self.assert_('CxxExceptionInSetUpTest::TearDown() '
170 self.assert_('unexpected' not in EX_BINARY_OUTPUT,
175 def testCatchesCxxExceptionsInTearDown(self):
176 self.assert_('C++ exception with description "Standard C++ exception"'
179 self.assert_('CxxExceptionInTearDownTest::TearDownTestCase() '
182 self.assert_('CxxExceptionInTearDownTest destructor '
186 def testCatchesCxxExceptionsInTestBody(self):
187 self.assert_('C++ exception with description "Standard C++ exception"'
190 self.assert_('CxxExceptionInTestBodyTest::TearDownTestCase() '
193 self.assert_('CxxExceptionInTestBodyTest destructor '
196 self.assert_('CxxExceptionInTestBodyTest::TearDown() '
200 def testCatchesNonStdCxxExceptions(self):
201 self.assert_('Unknown C++ exception thrown in the test body'
204 def testUnhandledCxxExceptionsAbortTheProgram(self):
214 self.assert_('Unhandled C++ exception terminating the program'
216 self.assert_('unexpected' not in uncaught_exceptions_ex_binary_output)