def unittest(): g = group.GroupFixed(5) inc = Incrementor(g, 1, 1) try: while g.next(): print inc.getValue() except group.GroupCompleted: pass g = group.GroupFixed(5) inc = Incrementor(g, 1, 10, "<<%d>>") try: while g.next(): print inc.getValue() except group.GroupCompleted: pass g = group.GroupFixed(5) inc = Incrementor(g, 1, 0.212673, "[[%0.2f]]") try: while g.next(): print inc.getValue() except group.GroupCompleted: pass
def unittest(): g = group.GroupFixed(5) inc = PerCallIncrementor(g, 1, 0.212673, "[[%0.2f]]") try: while g.next(): print(inc.getValue()) print(inc.getValue()) print(inc.getValue()) except group.GroupCompleted: pass