'Copies a backup of a test data file to the temp dir and sets its
mode to writeable.'

def copy_file(self, filename):

    shutil.copy(self.data(filename), self.temp(filename))
    os.chmod(self.temp(filename), (stat.S_IREAD | stat.S_IWRITE))
