class Test: def method(self, a): def func(b): x = self.method(b) return x