# Class e.p.h.t.t.TestElisaHttpClientMethods(TestCase, SetupServerMixin):

Part of elisa.plugins.http_client.tests.test_http_client View In Hierarchy

This test case tests the ElisaHttpClient class on other methods than GET (POST, PUT, DELETE).

What really happens on the server side is not tested here, this test case only checks that the server receives the request and answers correctly, and it is intended as an example piece of code for how to use methods other than GET.

Line # | Kind | Name | Docs
--- | --- | --- | ---
1020 | Method | setUp | Undocumented
1023 | Method | tearDown | Undocumented
1026 | Method | test_post | Test a simple POST request.
1040 | Method | test_put | Test a simple PUT request.
1054 | Method | test_delete | Test a simple DELETE request.

Inherited from SetupServerMixin:

Line # | Kind | Name | Docs
--- | --- | --- | ---
191 | Method | setUpClass | Undocumented
196 | Method | tearDownClass | Undocumented

def setUp(self):
Undocumented
def tearDown(self):
Undocumented
def test_post(self):
Test a simple POST request.

def test_put(self):
Test a simple PUT request.

def test_delete(self):
Test a simple DELETE request.