diff options
author | ianb <devnull@localhost> | 2007-05-25 02:46:34 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-05-25 02:46:34 +0000 |
commit | 8e921b0ef6d31306653c69483c794f09039ba2d4 (patch) | |
tree | d2b79e0671f2d69acabad4b951b90625a39f4be0 /tests/test_fixture.py | |
parent | 77a7b78f45fde4fb767f1f2d872a842445a8b35f (diff) | |
download | paste-8e921b0ef6d31306653c69483c794f09039ba2d4.tar.gz |
Added REST methods to Test, from Anders Pearson
Diffstat (limited to 'tests/test_fixture.py')
-rw-r--r-- | tests/test_fixture.py | 6 |
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') |