Python doctest file to simulate a WPS DescribeProcess invocation.
This test is testing the BoundingBox process of the Emu service (https://github.com/bird-house/emu).
This test does not execute any live HTTP request, rather it parses XML files containing pre-made HTTP responses.

Imports

    >>> from __future__ import (absolute_import, division, print_function)
    >>> from tests.utils import resource_file
    >>> from owslib.wps import WebProcessingService, printInputOutput

Initialize WPS client

    >>> wps = WebProcessingService('http://localhost:8094/wps',skip_caps=True)

Execute fake invocation of DescribeProcess operation by parsing cached response from Emu service

    >>> xml = open(resource_file('wps_bbox_DescribeProcess.xml'), 'rb').read()
    >>> process = wps.describeprocess('bbox', xml=xml)

Check process description

    >>> process.identifier
    'bbox'
    >>> process.title
    'Bounding Box'

Check process inputs

    >>> for input in process.dataInputs:
    ...     print('Process input:')
    ...     printInputOutput(input)
    ... 
    Process input:
     identifier=bbox, title=Bounding Box, abstract=None, data type=BoundingBoxData
     Supported Value: EPSG:4326
     Supported Value: EPSG:3035
     Default Value: EPSG:4326 
     minOccurs=1, maxOccurs=1


Check process outputs

    >>> for output in process.processOutputs:
    ...     print('Process output:')
    ...     printInputOutput(output)
    ... 
    Process output:
     identifier=bbox, title=Bounding Box, abstract=None, data type=BoundingBoxData
     Supported Value: EPSG:4326
     Default Value: EPSG:4326 
     reference=None, mimeType=None
