summaryrefslogtreecommitdiff
path: root/tests/test_proxy.py
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2015-04-30 16:42:17 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2015-04-30 16:42:17 -0700
commit12a3f1f4cfa7f88478dc1b0e949fcc095b9fc804 (patch)
treeddb8079523d846f0b074437fc33fa5e28b508183 /tests/test_proxy.py
downloadpaste-git-eliminate_cgi_parse_qsl.tar.gz
Replace cgi.parse_qsl w/ six.moves.urllib.parse.parse_sqleliminate_cgi_parse_qsl_2eliminate_cgi_parse_qsl
because `cgi.parse_qsl` is deprecated, according to https://docs.python.org/2/library/cgi.html#cgi.parse_qsl
Diffstat (limited to 'tests/test_proxy.py')
-rw-r--r--tests/test_proxy.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_proxy.py b/tests/test_proxy.py
new file mode 100644
index 0000000..44db9f3
--- /dev/null
+++ b/tests/test_proxy.py
@@ -0,0 +1,12 @@
+from paste import proxy
+from paste.fixture import TestApp
+
+def test_paste_website():
+ # Not the most robust test...
+ # need to test things like POSTing to pages, and getting from pages
+ # that don't set content-length.
+ app = proxy.Proxy('http://pythonpaste.org')
+ app = TestApp(app)
+ res = app.get('/')
+ assert 'documentation' in res
+