I want to simulate MyApp that imports a module (ResourceX) which requires a resource that is not available at the time and will not work. 
A solution for this is to make and import a mock module of ResourceX (named ResourceXSimulated) and divert it to MyApp as ResourceX. I want to do this in order to avoid breaking a lot of code and get all kinds of exception from MyApp.
I am using Python and It should be something like:
"Import ResourceXSimulated as ResourceX"
"ResourceX.getData()", actually calls ResourceXSimultated.getData()
Looking forward to find out if Python supports this kind of redirection.
Cheers.
ADDITIONAL INFO: I have access to the source files.
UPDATE: I am thinking of adding as little code as possible to MyApp regarding using the fake module and add this code near the import statements.
Yes, Python can do that, and so long as the methods exposed in the ResourceXSimulated module "look and smell" like these of the original module, the application should not see much any difference (other than, I'm assuming, bogus data fillers,  different response times and such).
Is it possible to divert a module in python? (ResourceX diverted to ResourceXSimulated)