def testKwArgsRecurse(self):
        kwa = kw_args(x=5, y=6)
        if kwa:
            self.assertEquals(kwa.get('x'), 5)
            self.assertEquals(kwa.get('y'), 6)

        kwa = kw_args2(x=5, y=6)
        if kwa:
            self.assertEquals(kwa.get('x'), 5)
            self.assertEquals(kwa.get('y'), 6)

        values = varargs_kwargs(1,2,3,4,c=3)
        self.assertEquals(values[0], 1)
        self.assertEquals(values[1], 2)
        self.assertEquals(values[2], (3,4))
        self.assertEquals(values[3]['c'], 3)

        values = varargs_kwargs2(1,2,3,4,c=3)
        self.assertEquals(values[0], 1)
        self.assertEquals(values[1], 2)
        self.assertEquals(values[2], (3,4))
        self.assertEquals(values[3]['c'], 3)

        values = varargs_kwargs2(1)
        self.assertEquals(values[0], 1)
        self.assertEquals(values[1], 3)

        values = varargs_kwargs2(1, {'a':1}, {})
        self.assertEquals(values[0], 1)
        self.assertEquals(values[1]['a'], 1)

        values = varargs_kwargs2(1, {'a':1})
        self.assertEquals(values[0], 1)
        try:
            self.assertEquals(values[1], {'a':1})
        except __HOLE__, e:
            self.fail("Last arg in *args,**kwargs is dict problem")
dataset/ETHPy150Open pyjs/pyjs/examples/libtest/ArgsTest.py/ArgsTest.testKwArgsRecurse