def test_arg_lookup(self): def dummy_func(first, second, third, fourth='fifth'): pass expected_dict = {'args': ['first', 'second', 'third'], 'kwargs': {'fourth': 'fifth'}} ret = utils.arg_lookup(dummy_func) self.assertEqual(expected_dict, ret)
def test_arg_lookup(self): def dummy_func(first, second, third, fourth='fifth'): pass expected_dict = {'args': ['first', 'second', 'third'], 'kwargs': {'fourth': 'fifth'}} ret = utils.arg_lookup(dummy_func) self.assertEqual(expected_dict, ret)
def test_arg_lookup(self): def dummy_func(first, second, third, fourth="fifth"): pass expected_dict = {"args": ["first", "second", "third"], "kwargs": {"fourth": "fifth"}} ret = utils.arg_lookup(dummy_func) self.assertEqual(expected_dict, ret)