<s> import os <EOL> import sys <EOL> import uuid , random <EOL> from os . path import dirname , join <EOL> PYTHON_DIR = join ( dirname ( __file__ ) , '<STR_LIT>' ) <EOL> sys . stdout = sys . stderr <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> sys . path . insert ( <NUM_LIT:0> , PYTHON_DIR ) <EOL> from vt_manager . models . VTServer import VTServer <EOL> from vt_manager . communication . utils . XmlHelper import * <EOL> from vt_manager . communication . XmlRpcClient import XmlRpcClient <EOL> rspec = XmlHelper . parseXmlString ( xmlFileToString ( '<STR_LIT>' ) ) <EOL> rspec . query . provisioning . action [ <NUM_LIT:0> ] . virtual_machine . uuid = uuid . uuid4 ( ) <EOL> rspec . query . provisioning . action [ <NUM_LIT:0> ] . virtual_machine . name = random . randint ( <NUM_LIT:0> , <NUM_LIT:1000> ) <EOL> XmlRpcClient . callRPCMethodBasicAuth ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , XmlHelper . craftXmlClass ( rspec ) ) </s>
