def test_subunitWithoutAddExpectedFailureInstalled(self):
        self.removeMethod(reporter.TestProtocolClient, 'addExpectedFailure')
        try:
            1 / 0
        except ZeroDivisionError:
            self.result.addExpectedFailure(self.test, sys.exc_info(), "todo")
        expectedFailureOutput = self.stream.getvalue()
        self.stream.truncate(0)
        self.stream.seek(0)
        self.result.addSuccess(self.test)
        successOutput = self.stream.getvalue()
        self.assertEqual(successOutput, expectedFailureOutput)
Returns the number of children.
dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/SubunitReporterTests.test_subunitWithoutAddExpectedFailureInstalled--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/menu_bar.py/MenuItem.getSize