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))
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))
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))
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))
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))
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))
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))