def test_DELETE(self): client = HTTPClient(url="http://httpbin.org/anything/27", requests=webtest.TestApp(Application())) response = client.DELETE() assert '"method": "DELETE"' in response assert '"url": "http://httpbin.org/anything/27"' in response
def test_DELETE(self): client = HTTPClient(url="http://httpbin.org/anything/27") with requests_mock.Mocker() as m: m.delete(client._url, json={ "method": "DELETE", "url": "http://httpbin.org/anything/27" }) response = client.DELETE() assert '"method": "DELETE"' in response assert '"url": "http://httpbin.org/anything/27"' in response