How to patch functions inside imported modules required for testing. Use a global and a module fixture.