예제 #1
0
    def testParseGetCapabilitiesPOST(self):
        """Test if GetCapabilities request is parsed and if POST methods do get the same result"""

        getCapabilitiesRequestFile = open(os.path.join(pywpsPath,"tests","requests","wps_getcapabilities_request.xml"))

        self.gc.set_from_xml(request.parse_xml(getCapabilitiesRequestFile))

        self.assertEquals(self.gc.version, self.test_values["version"])
        self.assertEquals(self.gc.request, self.test_values["request"])
        self.assertEquals(self.gc.service, self.test_values["service"])
        self.assertEquals(self.gc.lang,self.test_values["language"])
예제 #2
0
    def testParseDescribeProcessPOST(self):
        """Test if DescribeProcess request is parsed and if GET
        methods are producing the same result"""

        rfile = open(os.path.join(pywpsPath,"tests","requests","wps_describeprocess_request.xml"))

        self.dp.set_from_xml(request.parse_xml(rfile))

        self.assertEquals(self.dp.service, self.test_values["service"])
        self.assertEquals(self.dp.version, self.test_values["version"])
        self.assertEquals(self.dp.lang, self.test_values["language"])
        self.assertEquals(self.dp.identifiers, self.test_values["identifier"])
예제 #3
0
    def testParseGetCapabilitiesPOST(self):
        """Test if GetCapabilities request is parsed and if POST methods do get the same result"""

        getCapabilitiesRequestFile = open(
            os.path.join(pywpsPath, "tests", "requests",
                         "wps_getcapabilities_request.xml"))

        self.gc.set_from_xml(request.parse_xml(getCapabilitiesRequestFile))

        self.assertEquals(self.gc.version, self.test_values["version"])
        self.assertEquals(self.gc.request, self.test_values["request"])
        self.assertEquals(self.gc.service, self.test_values["service"])
        self.assertEquals(self.gc.lang, self.test_values["language"])