def setup(self):

        self.xml.append(cim_xml.IMETHODCALL('FooMethod', LOCALNAMESPACEPATH()))

        self.xml.append(
            cim_xml.IMETHODCALL(
                'FooMethod2', LOCALNAMESPACEPATH(),
                [cim_xml.IPARAMVALUE('Dog', cim_xml.VALUE('Spottyfoot'))]))
Esempio n. 2
0
    def setUp(self):
        super(IParamValue, self).setUp()

        # Empty

        self.xml.append(cim_xml.IPARAMVALUE('Bird'))

        # VALUE

        self.xml.append(cim_xml.IPARAMVALUE('Pet', cim_xml.VALUE('Dog')))

        # VALUE.ARRAY

        self.xml.append(cim_xml.IPARAMVALUE('Pet', cim_xml.VALUE_ARRAY([])))

        # VALUE.REFERENCE

        self.xml.append(
            cim_xml.IPARAMVALUE(
                'Pet',
                cim_xml.VALUE_REFERENCE(
                    cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()))))

        # INSTANCENAME

        self.xml.append(cim_xml.IPARAMVALUE('Pet', INSTANCENAME()))

        # CLASSNAME

        self.xml.append(cim_xml.IPARAMVALUE('Pet', CLASSNAME()))

        # TODO: QUALIFIER.DECLARATION

        # CLASS

        self.xml.append(cim_xml.IPARAMVALUE('Pet', cim_xml.CLASS('CIM_Foo')))

        # INSTANCE

        self.xml.append(
            cim_xml.IPARAMVALUE('Pet', cim_xml.INSTANCE('CIM_Pet', [])))

        # VALUE.NAMEDINSTANCE

        self.xml.append(
            cim_xml.IPARAMVALUE(
                'Pet',
                cim_xml.VALUE_NAMEDINSTANCE(INSTANCENAME(),
                                            cim_xml.INSTANCE('CIM_Pet', []))))