def assertFileExists(self, path):
        """
        Check that a file at path exists.
        """
        try:
            open(path)
        except __HOLE__:
            path_dir = os.path.dirname(path)
            msg = [
                "File does not exist: {0}".format(path),
                "The following files *did* exist in {0}: {1}".format(path_dir, os.listdir(path_dir))
            ]
            self.fail("\n".join(msg))
dataset/ETHPy150Open koenbok/Cactus/cactus/tests/__init__.py/BaseTestCase.assertFileExists