def __init__(self, filename, content):

        self.filename = filename
        self.__needsRewrite = False
        self.__content = content

        # Open file with "w" at least once so it will be overwritten.
        util.write_file(content, self.filename)
Test archiving of a super-entity instance record
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/filewriter.py/FileWriter.__init__--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/ResourceDeleteTests.testArchiveSuper