def test_signature_crazy(self):
        xplorer = self.pool.getExplorer(function_crazy, 'function_crazy')

        signature = xplorer.signature

        # The name of the first argument seems to be indecipherable,
        # but make sure it has one (and no default).
        self.assertTrue(signature.get_name(0))
        self.assertTrue(not signature.get_default(0)[0])

        self.assertEqual(signature.get_name(1), 'c')

        # Get a list of values from a list of ExplorerImmutables.
        arg_2_default = map(lambda l: l.value,
                            signature.get_default(2)[1].get_elements())

        self.assertEqual(signature.get_name(2), 'd')
        self.assertEqual(arg_2_default, range(4))

        self.assertEqual(signature.get_name(3), 'kw')
        self.assertTrue(signature.is_keyword(3))
Testing function with crazy signature.
dataset/ETHPy150Open twisted/twisted/twisted/test/test_explorer.py/BrowseFunctionTests.test_signature_crazy