def METHOD_NAME(self, linesep):
    self.tfile = tempfile.NamedTemporaryFile(delete=False, mode="w+b")
    self.tfile.write(
        salt.utils.stringutils.to_bytes(linesep.join(self.TEST_FILE_CONTENT))
    )
    self.tfile.close()