Access via BaseClass.base_function
. As you don't overload the method, you just inherit it, the DerivedClass.base_function
is the same object:
id(BaseClass.base_function) == id(DerivedClass.base_function)
When the instances are created, they inherit the mock.