pyfakefs Posted on September 23, 2014May 28, 2020 by Tessa (the external) 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.