def find_all_tests(root_suite):
    """Yields all the tests and their names from a given suite."""
    suites = [root_suite]
    while suites:
        tsuite = suites.pop()
        try:
            # not that suite is iterable, thus every sub-suite from suite
            # is appended to the suites list
            suites.extend(tsuite)
        except __HOLE__:
            yield tsuite, '{}.{}.{}'.format(
                tsuite.__class__.__module__,
                tsuite.__class__.__name__,
                tsuite._testMethodName ).lower()
dataset/ETHPy150Open BasicWolf/kaylee/kaylee/testsuite/__init__.py/find_all_tests