def METHOD_NAME(self):
    """Make a valid python temp file."""
    lines = [ "import sys",
             "print('on stdout', end='', file=sys.stdout)",
             "print('on stderr', end='', file=sys.stderr)",
             "sys.stdout.flush()",
             "sys.stderr.flush()"]
    self.mktmp('\n'.join(lines))