def countTestCases(self):
        """
        Python 3.x-like version of this function for Python 2.7's sake.
        """
        cases = self._removed_tests
        for test in self:
            if test:
                cases += test.countTestCases()
        return cases
def countTestCases ( self ) : cases = self . _removed_tests for test in self : if test : cases += test . countTestCases ( ) return cases
Python 3.x-like version of this function for Python 2.7's sake.