def extract_fixtures(suite, recursive_iterator=_breadth_first):
    """Extract the text fixtures from a suite.
    Descends recursively into sub-suites."""
    def test_children(node):
        if isinstance(node, unittest.TestSuite): return iter(node)
        return []

    return ifilter(lambda test: isinstance(test, unittest.TestCase),
                   recursive_iterator(suite, children=test_children))
Extract the text fixtures from a suite.
    Descends recursively into sub-suites.
recipes/Python/391414_Threaded_test_suite_running_other/recipe-391414.py