def test_FuncArgs(self): def func(some_arg=0): for i in xrange(some_arg): pass t = Task() t.func = func t.args_in = {'some_arg': 1000} t.run()