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