wsgi/test/unittest_wsgi.py
changeset 9944 9b3b21b7ff3e
parent 9943 a4aeee690bff
child 9946 ec88c1a1904a
--- a/wsgi/test/unittest_wsgi.py	Tue Sep 02 13:00:47 2014 +0200
+++ b/wsgi/test/unittest_wsgi.py	Mon Sep 08 10:55:30 2014 +0200
@@ -64,6 +64,18 @@
             '/',
             params={'__login': self.admlogin, '__password': self.admpassword})
 
+    def test_get_multiple_variables(self):
+        r = webtest.app.TestRequest.blank('/?arg=1&arg=2')
+        req = CubicWebWsgiRequest(r.environ, self.vreg)
+
+        self.assertEqual([u'1', u'2'], req.form['arg'])
+
+    def test_post_multiple_variables(self):
+        r = webtest.app.TestRequest.blank('/', POST='arg=1&arg=2')
+        req = CubicWebWsgiRequest(r.environ, self.vreg)
+
+        self.assertEqual([u'1', u'2'], req.form['arg'])
+
     @classmethod
     def init_config(cls, config):
         super(WSGIAppTC, cls).init_config(config)