MCPcopy Create free account
hub / github.com/Pylons/webtest / test_request_with_testrequest

Method test_request_with_testrequest

tests/test_app.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 resp.mustcontain('a=b', 'c=d', 'e=f')
66
67 def test_request_with_testrequest(self):
68 req = webtest.TestRequest.blank('/')
69 resp = self.app.request(req, method='POST')
70 resp.charset = 'ascii'
71 assert 'REQUEST_METHOD: POST' in resp.text
72
73 def test_patch(self):
74 resp = self.app.patch('/')

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected