def test_patch(self): responses.add(responses.PATCH, "http://example.com", json={}) resp = ApiClient().patch("http://example.com") assert resp.status_code == 200
def test_post(self): responses.add(responses.POST, "http://example.com", json={}) resp = ApiClient().post("http://example.com") assert resp.status_code == 200
def test_delete(self): responses.add(responses.DELETE, "http://example.com", json={}) resp = ApiClient().delete("http://example.com") assert resp.status_code == 200
def test_put(self): responses.add(responses.PUT, 'http://example.com', json={}) resp = ApiClient().put('http://example.com') assert resp.status_code == 200