def METHOD_NAME(self, path):
    if self.to_raise:
        raise self.to_raise
    if os.path.normpath(path) == self.path:
        return self.file_names
    self.error = True
    raise make_OSError(errno.ENOENT)