def create_tmpfile(self, content):
<EOL>tmpfile, tmpfilepath = tempfile.mkstemp()<EOL>self.tmpfiles.append(tmpfilepath)<EOL>with os.fdopen(tmpfile, "<STR_LIT:w>") as f:<EOL><INDENT>f.write(content)<EOL><DEDENT>return tmpfilepath<EOL>
Utility method to create temp files. These are cleaned at the end of the test