Tests

logger tests

Tests for the restlib logging.

class tests.test_logger.TestGetRestlibLogger(methodName='runTest')

Class to test the restlib.logger.get_restlib_logger function.

test_logger_level()
Verify levels are being set properly.
test_logger_name()
Make sure the name is being set properly.

rest tests

Tests for the REST class.

class tests.test_rest.TestREST(methodName='runTest')

Class to test the restlib.REST class.

setUp()
Setup the test case.
test_rest__do_allowed_types()
Verify that things that are not in the types list get stopped.
test_rest_http_delete()
Verify http DELETE’s go as planned.
test_rest_http_delete_with_params()
Verify http DELETE’s with params go as planned.
test_rest_http_get()
Verify http GET’s go as planned.
test_rest_http_get_with_params()
Verify http GET’s with params go as planned.
test_rest_http_post()
Verify http POST’s go as planned.
test_rest_http_post_with_params()
Verify http POST’s with params go as planned.
test_rest_http_put()
Verify http PUT’s go as planned.
test_rest_http_put_with_params()
Verify http PUT’s with params go as planned.
test_rest_init()
Ensure base variables are set up as expected.

Table Of Contents

Previous topic

Code

This Page

Quick search