tests Package¶
test_restapi Module¶
-
class
mock_server.tests.test_restapi.TestRestApi(methodName='runTest', **kwargs)¶ Bases:
tornado.testing.AsyncHTTPTestCase-
get_app()¶ Should be overridden by subclasses to return a tornado.web.Application or other .HTTPServer callback.
-
get_new_ioloop()¶ Creates a new .IOLoop for this test. May be overridden in subclasses for tests that require a specific .IOLoop (usually the singleton .IOLoop.instance()).
-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
tearDown()¶ Hook method for deconstructing the test fixture after testing it.
-
test_custom_provider()¶
-
test_hello_on_upstream_server()¶
-
test_list_users()¶
-
test_noexists_method()¶
-
test_url_with_variables()¶
-
test_user_doesnt_exists_with_custom_header()¶
-