def testAddArgScopeRaceCondition(self): func4_kwargs = ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h') for i in range(4): # redefine the function with different args @add_arg_scope def func4(a=1, b=2, c=3, d=4, e=5, f=6, g=7, h=8): pass self.assertTupleEqual(arg_scoped_arguments(func4), func4_kwargs)
def testArgScopedArguments(self): func3_kwargs = ('a', 'b', 'c') self.assertEquals(arg_scoped_arguments(func3), func3_kwargs)