def fofunc(toi, int1=Int(), int2=Int(), int3=Int()): calls.append((toi, int1, int2, int3)) return retVal
def fofunc(toi, int1=Int()): calls.append(( toi, int1, )) return retVal
def tMethod(toi, fooArg=Int()): pass
def fooMethod(toi, fooArg=Int()): return fooArg
class fooTO(TO): @method(Int()) def fooMethod(toi, fooArg=Int()): return fooArg
def bar(toi, arg1=Int()): calls.append(('origbar', toi, arg1))