def test_checktab_tree(wind):
    'Check tree item counting functionality.'
    (window, _) = wind
    checktab = window.central.checkWidget
    window.central.setCurrentWidget(checktab)
    tree = TreeWidget(parent=checktab)
    item = TreePieceItem(type=0, tree=tree)
    item.progbar = ProgressBar(parent=tree, size=1000000)
    item.count(100000000)
    assert (item.counted == 1000000)
Check tree item counting functionality.
def test_checktab_tree(wind):
    
    (window, _) = wind
    checktab = window.central.checkWidget
    window.central.setCurrentWidget(checktab)
    tree = TreeWidget(parent=checktab)
    item = TreePieceItem(type=0, tree=tree)
    item.progbar = ProgressBar(parent=tree, size=1000000)
    item.count(100000000)
    assert (item.counted == 1000000)