def __init__(self, **args):
<EOL>self.agentport  = <NUM_LIT><EOL>self.informport = <NUM_LIT><EOL>self.smuxport   = <NUM_LIT><EOL>atexit.register(self.shutdown)<EOL>self.tmpdir = tempfile.mkdtemp("<STR_LIT>")<EOL>conffile          = os.path.join(self.tmpdir, "<STR_LIT>")<EOL>self.mastersocket = os.path.join(self.tmpdir, "<STR_LIT>")<EOL>self.statedir     = os.path.join(self.tmpdir, "<STR_LIT:state>")<EOL>self.pidfile      = os.path.join(self.tmpdir, "<STR_LIT>")<EOL>indexesfile       = os.path.join(self.tmpdir, "<STR_LIT>")<EOL>with open(conffile, "<STR_LIT:w>") as f:<EOL><INDENT>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>".format(self.agentport))<EOL>f.write("<STR_LIT>".format(self.informport))<EOL>f.write("<STR_LIT>".format(self.smuxport))<EOL>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>".format(self.mastersocket))<EOL>f.write("<STR_LIT>")<EOL>f.write("<STR_LIT>".format(self.statedir))<EOL><DEDENT>open(indexesfile, "<STR_LIT:w>").close()<EOL>cmd = "<STR_LIT>".format(<EOL>conffile, self.pidfile<EOL>)<EOL>subprocess.check_call(cmd, shell=True)<EOL>
Initializes a new net-snmp test environment.