pyfakefs

Another great tip from PyConUK.  Need your Python tests to interact with the file system?  Find using /tmp unsatisfactory, then why not mock file system files using pyfakefs.