def iter_tabs(area):
    stack = [area.centralWidget()]
    while stack:
        widget = stack.pop()
        if isinstance(widget, QDockTabWidget):
            yield widget
        elif isinstance(widget, QDockSplitter):
            for index in xrange(widget.count()):
                stack.append(widget.widget(index))
clean up the test environment
dataset/ETHPy150Open nucleic/enaml/enaml/qt/docking/layout_handling.py/iter_tabs--crossover with--dataset/ETHPy150Open eoyilmaz/anima/tests/ui/test_reference_editor.py/ReferenceEditorTestCase.tearDown