Beispiel #1
0
    def test_execute_request(self):
        self.skipTest("Parser changed")
        root = objectify.Element("{http://www.opengis.net/wps/1.0.0}Execute")
        url = "requesT=ExecuTe&identifier=all"

        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r, execute.Execute))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r, execute.Execute))
Beispiel #2
0
    def test_execute_request(self):
        self.skipTest("Parser changed")
        root = objectify.Element("{http://www.opengis.net/wps/1.0.0}Execute")
        url = "requesT=ExecuTe&identifier=all"

        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r,execute.Execute))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r,execute.Execute))
Beispiel #3
0
    def test_describeprocess_request(self):
        root = objectify.Element("{http://www.opengis.net/wps/1.0.0}DescribeProcess",version="1.0.0")
        url = "requesT=DescribePROCESS&identifier=all"

        from pywps.request import describeprocess

        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r,describeprocess.DescribeProcess))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r,describeprocess.DescribeProcess))
Beispiel #4
0
    def test_capabilities_request(self):
        
        root = objectify.Element("{http://www.opengis.net/wps/1.0.0}GetCapabilities")
        url = "requesT=GetCApabilities"

        from pywps.request import getcapabilities

        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r,getcapabilities.GetCapabilities))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r,getcapabilities.GetCapabilities))
Beispiel #5
0
    def test_capabilities_request(self):
        self.skipTest("Parser changed")

        root = objectify.Element(
            "{http://www.opengis.net/wps/1.0.0}GetCapabilities")
        url = "requesT=GetCApabilities"

        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r, getcapabilities.GetCapabilities))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r, getcapabilities.GetCapabilities))
Beispiel #6
0
    def test_capabilities_request(self):
        self.skipTest("Parser changed")

        root = objectify.Element("{http://www.opengis.net/wps/1.0.0}GetCapabilities")
        url = "requesT=GetCApabilities"


        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r,getcapabilities.GetCapabilities))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r,getcapabilities.GetCapabilities))
Beispiel #7
0
    def test_describeprocess_request(self):
        self.skipTest("Parser changed")
        root = objectify.Element(
            "{http://www.opengis.net/wps/1.0.0}DescribeProcess",
            version="1.0.0")
        url = "requesT=DescribePROCESS&identifier=all"

        from pywps.request import describeprocess

        # test xml
        r = request.get_request(io.BytesIO(etree.tostring(root)))
        self.assertTrue(isinstance(r, describeprocess.DescribeProcess))

        # test url
        r = request.get_request(url)
        self.assertTrue(isinstance(r, describeprocess.DescribeProcess))