summaryrefslogtreecommitdiff
path: root/tests/test_fixture.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-05-25 02:46:34 +0000
committerianb <devnull@localhost>2007-05-25 02:46:34 +0000
commit8e921b0ef6d31306653c69483c794f09039ba2d4 (patch)
treed2b79e0671f2d69acabad4b951b90625a39f4be0 /tests/test_fixture.py
parent77a7b78f45fde4fb767f1f2d872a842445a8b35f (diff)
downloadpaste-8e921b0ef6d31306653c69483c794f09039ba2d4.tar.gz
Added REST methods to Test, from Anders Pearson
Diffstat (limited to 'tests/test_fixture.py')
-rw-r--r--tests/test_fixture.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py
index 2be1d9d..576d375 100644
--- a/tests/test_fixture.py
+++ b/tests/test_fixture.py
@@ -6,4 +6,10 @@ def test_fixture():
res = app.get('/', params={'a': ['1', '2']})
assert (res.request.environ['QUERY_STRING'] ==
'a=1&a=2')
+ res = app.put('/')
+ assert (res.request.environ['REQUEST_METHOD'] ==
+ 'PUT')
+ res = app.delete('/')
+ assert (res.request.environ['REQUEST_METHOD'] ==
+ 'DELETE')