By \"internal function\", I mean a function that is called from within the same module it is defined in.
I am using the mock library, specifically the patch decorators,
I'm pretty sure your problem is that you are importing 'mymodule' inside your test functions, and therefore the patch decorator has no chance of actually patching. Do the import at the top of the module, like any other import.