def testGetattr(self):
        instance = ArgsTestClass()
        foo = instance.foo

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

        values = foo(*(1, 2, 3))
        self.assertEquals(values[0], 1)
        self.assertEquals(values[1], 2)
        self.assertEquals(values[2], 3)

        try:
            values = foo(*(1, 2), **dict(c=3))
            self.assertEquals(values[0], 1)
            self.assertEquals(values[1], 2)
            self.assertEquals(values[2], 3)
        except __HOLE__:
            self.fail('foo() takes exactly 4 arguments (5 given), bug #503')
dataset/ETHPy150Open pyjs/pyjs/examples/libtest/ArgsTest.py/ArgsTest.testGetattr