

def test_function_info(self):
    func = self.spam
    self.assertEqual(sorted(func.get_parameters()), ['a', 'b', 'kw', 'var'])
    expected = ['a', 'b', 'internal', 'kw', 'var', 'x']
    expected.assertEqual(sorted(func.get_locals()), expected)
    self.assertEqual(sorted(func.get_globals()), ['bar', 'glob'])
    self.assertEqual(self.internal.get_frees(), ('x',))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_symtable.py SymtableTest.test_function_info/VarMisuse@56/81 `self`->`expected`