def setup(self):

        # (CLASSPATH, CLASS)

        self.xml.append(
            cim_xml.VALUE_OBJECTWITHPATH(
                cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()),
                cim_xml.CLASS('CIM_Foo')))

        # (INSTANCEPATH, INSTANCE)

        self.xml.append(
            cim_xml.VALUE_OBJECTWITHPATH(
                cim_xml.INSTANCEPATH(NAMESPACEPATH(), INSTANCENAME()),
                cim_xml.INSTANCE('CIM_Pet', [])))
Exemplo n.º 2
0
    def setUp(self):
        super(ValueObjectWithPath, self).setUp()

        # (CLASSPATH, CLASS)

        self.xml.append(
            cim_xml.VALUE_OBJECTWITHPATH(
                cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()),
                cim_xml.CLASS('CIM_Foo')))

        # (INSTANCEPATH, INSTANCE)

        self.xml.append(
            cim_xml.VALUE_OBJECTWITHPATH(
                cim_xml.INSTANCEPATH(NAMESPACEPATH(), INSTANCENAME()),
                cim_xml.INSTANCE('CIM_Pet', [])))
Exemplo n.º 3
0
    def setUp(self):
        super(IReturnValue, self).setUp()

        # Empty

        self.xml.append(cim_xml.IRETURNVALUE(None))

        # CLASSNAME

        self.xml.append(cim_xml.IRETURNVALUE(CLASSNAME()))

        # INSTANCENAME

        self.xml.append(cim_xml.IRETURNVALUE(INSTANCENAME()))

        # VALUE

        self.xml.append(cim_xml.IRETURNVALUE(cim_xml.VALUE('Dog')))

        # VALUE.OBJECTWITHPATH

        self.xml.append(
            cim_xml.IRETURNVALUE(
                cim_xml.VALUE_OBJECTWITHPATH(
                    cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()),
                    cim_xml.CLASS('CIM_Foo'))))

        # VALUE.OBJECTWITHLOCALPATH

        self.xml.append(
            cim_xml.IRETURNVALUE(
                cim_xml.VALUE_OBJECTWITHLOCALPATH(
                    cim_xml.LOCALCLASSPATH(LOCALNAMESPACEPATH(), CLASSNAME()),
                    cim_xml.CLASS('CIM_Foo'))))

        # VALUE.OBJECT

        self.xml.append(
            cim_xml.IRETURNVALUE(
                cim_xml.VALUE_OBJECT(cim_xml.INSTANCE('CIM_Pet', []))))

        # OBJECTPATH

        self.xml.append(
            cim_xml.IRETURNVALUE(
                cim_xml.OBJECTPATH(
                    cim_xml.INSTANCEPATH(NAMESPACEPATH(), INSTANCENAME()))))

        # TODO: QUALIFIER.DECLARATION

        # VALUE.ARRAY

        self.xml.append(cim_xml.IRETURNVALUE(cim_xml.VALUE_ARRAY([])))

        # VALUE.REFERENCE

        self.xml.append(
            cim_xml.IRETURNVALUE(
                cim_xml.VALUE_REFERENCE(
                    cim_xml.CLASSPATH(NAMESPACEPATH(), CLASSNAME()))))

        # CLASS

        self.xml.append(cim_xml.IRETURNVALUE(cim_xml.CLASS('CIM_Foo')))

        # INSTANCE

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

        # VALUE.NAMEDINSTANCE

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