def setup(self): # VALUE self.xml.append(cim_xml.RETURNVALUE(cim_xml.VALUE('Dog'))) # VALUE.REFERENCE self.xml.append( cim_xml.RETURNVALUE( cim_xml.VALUE_REFERENCE( cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()))))
def setUp(self): super(ReturnValue, self).setUp() # VALUE self.xml.append(cim_xml.RETURNVALUE(cim_xml.VALUE('Dog'))) # VALUE.REFERENCE self.xml.append( cim_xml.RETURNVALUE( cim_xml.VALUE_REFERENCE( cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()))))
def setUp(self): super(MethodResponse, self).setUp() # ERROR self.xml.append( cim_xml.METHODRESPONSE('FooMethod', cim_xml.ERROR('123'))) # Empty self.xml.append(cim_xml.METHODRESPONSE('FooMethod')) # RETURNVALUE self.xml.append( cim_xml.METHODRESPONSE( 'FooMethod', cim_xml.PARAMVALUE('Dog', cim_xml.VALUE('Spottyfoot')))) # PARAMVALUE self.xml.append( cim_xml.METHODRESPONSE( 'FooMethod', cim_xml.PARAMVALUE('Dog', cim_xml.VALUE('Spottyfoot')))) # RETURNVALUE + PARAMVALUE self.xml.append( cim_xml.METHODRESPONSE( 'FooMethod', (cim_xml.RETURNVALUE(cim_xml.VALUE('Dog')), cim_xml.PARAMVALUE('Dog', cim_xml.VALUE('Spottyfoot')))))