Esempio n. 1
0
    def setUp(self):
        super(MethodCall, self).setUp()

        # LOCALINSTANCEPATH

        self.xml.append(
            cim_xml.METHODCALL(
                'FooMethod',
                cim_xml.LOCALINSTANCEPATH(LOCALNAMESPACEPATH(),
                                          INSTANCENAME())))

        # LOCALCLASSPATH

        self.xml.append(
            cim_xml.METHODCALL(
                'FooMethod',
                cim_xml.LOCALCLASSPATH(LOCALNAMESPACEPATH(), CLASSNAME())))

        # PARAMVALUEs

        self.xml.append(
            cim_xml.METHODCALL(
                'FooMethod',
                cim_xml.LOCALINSTANCEPATH(LOCALNAMESPACEPATH(),
                                          INSTANCENAME()),
                [cim_xml.PARAMVALUE('Dog', cim_xml.VALUE('Spottyfoot'))]))
    def setup(self):

        # IMETHODCALL

        self.xml.append(
            cim_xml.SIMPLEREQ(
                cim_xml.IMETHODCALL('FooIMethod', LOCALNAMESPACEPATH())))

        # METHODCALL

        self.xml.append(
            cim_xml.SIMPLEREQ(
                cim_xml.METHODCALL(
                    'FooMethod',
                    cim_xml.LOCALCLASSPATH(LOCALNAMESPACEPATH(),
                                           CLASSNAME()))))
Esempio n. 3
0
    def setUp(self):
        super(SimpleReq, self).setUp()

        # IMETHODCALL

        self.xml.append(
            cim_xml.SIMPLEREQ(
                cim_xml.IMETHODCALL('FooIMethod', LOCALNAMESPACEPATH())))

        # METHODCALL

        self.xml.append(
            cim_xml.SIMPLEREQ(
                cim_xml.METHODCALL(
                    'FooMethod',
                    cim_xml.LOCALCLASSPATH(LOCALNAMESPACEPATH(),
                                           CLASSNAME()))))