Skip to content

Instantly share code, notes, and snippets.

@andreafrancia
andreafrancia / test_pywps_bug.py
Created September 1, 2011 13:49
Bug: PyWPS does not escape properly ExceptionText
import unittest
import sys
sys.path.append("./pywps-svn")
import pywps
import pywps.config
pywps.config.loadConfiguration('tests/pywps-no-logging.cfg')
class TestWps(unittest.TestCase):
def test_what_happen_on_process_errors(self):
wps = pywps.Pywps(pywps.METHOD_GET)
@andreafrancia
andreafrancia / test_wps.py
Created August 4, 2011 13:29
Bug encoding PyWPS
from nose.tools import assert_equals, assert_true
import sys
sys.path.append("./pywps-svn")
import pywps
def test_no_problems_passing_normal_chars():
wps = pywps.Pywps(pywps.METHOD_GET)
wps.parseRequest(
'service=WPS&version=1.0.0&'
'request=Execute&identifier=stub&'