def foo(self, n):
    return self.bar(n)

def bar(self, n):
    return n + 2


class PotatoTest(TestCase):

    def test_something(self):
        pass
python mock - patching a method without obstructing implementation