How do I mock an open used in a with statement (using the Mock framework in Python)?

Published --