Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Num Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Dict Str Dict Str Dict Str Str Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num keyword Num keyword Dict Str Dict Str Str keyword Dict Str Str keyword Dict Str Str keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Dict Str Str keyword NameLoad keyword Num keyword TupleLoad Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str Str keyword Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Call NameLoad Call NameLoad Num Call NameLoad Call NameLoad Num Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad keyword Num Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad Call NameLoad Num Call NameLoad Call NameLoad Num Num ListLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad keyword Num Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad keyword Num Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad Call NameLoad Num Num Call NameLoad Call NameLoad Num Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Num Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad Call NameLoad Num Num Call NameLoad Call NameLoad Num Num Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str keyword NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad keyword Num keyword Num Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword NameLoad keyword Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr keyword NameLoad keyword Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Num Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A 
    SoftLayer.tests.api_tests
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    :license: MIT, see LICENSE for more details.
 N/A mock N/A SoftLayer N/A SoftLayer.API SoftLayer testing SoftLayer transports Inititialization N/A N/A testing TestCase N/A test_init N/A N/A self N/A N/A N/A client N/A N/A SoftLayer Client username doesnotexist api_key issurelywrong timeout 10 N/A N/A N/A self assertIsInstance N/A client auth N/A SoftLayer BasicAuthentication N/A N/A N/A self assertEqual N/A N/A client auth username doesnotexist N/A N/A N/A self assertEqual N/A N/A client auth api_key issurelywrong N/A N/A N/A self assertIsNotNone N/A client transport N/A N/A N/A self assertIsInstance N/A client transport N/A transports XmlRpcTransport N/A N/A N/A self assertEqual N/A N/A client transport timeout 10 N/A test_env N/A N/A self get_client_settings N/A N/A N/A auth N/A N/A mock Mock N/A N/A get_client_settings return_value N/A timeout endpoint_url 10 http://endpoint_url/ N/A client N/A N/A SoftLayer Client auth auth N/A N/A N/A self assertEqual N/A N/A N/A client auth get_headers N/A N/A auth get_headers N/A N/A N/A self assertEqual N/A N/A client transport timeout 10 N/A N/A N/A self assertEqual N/A N/A client transport endpoint_url http://endpoint_url N/A N/A N/A mock patch SoftLayer.config.get_client_settings N/A ClientMethods N/A N/A testing TestCase N/A test_repr N/A N/A self N/A N/A N/A client N/A N/A SoftLayer Client username doesnotexist api_key issurelywrong N/A N/A N/A self assertIn Client N/A repr client N/A test_service_repr N/A N/A self N/A N/A N/A client N/A N/A SoftLayer Client username doesnotexist api_key issurelywrong N/A N/A N/A self assertIn Service N/A repr N/A client N/A SERVICE N/A test_len N/A N/A self N/A N/A N/A client N/A N/A SoftLayer Client username doesnotexist api_key issurelywrong N/A N/A N/A self assertEqual N/A len client 0 N/A N/A APIClient N/A N/A testing TestCase N/A test_simple_call N/A N/A self N/A N/A N/A mock N/A N/A self set_mock SoftLayer_SERVICE METHOD N/A N/A mock return_value N/A test result N/A resp N/A N/A N/A N/A self client N/A SERVICE METHOD N/A N/A N/A self assertEqual resp N/A test result N/A N/A N/A self assert_called_with SoftLayer_SERVICE METHOD mask None filter None identifier None args N/A tuple limit None offset None N/A test_complex N/A N/A self N/A N/A N/A mock N/A N/A self set_mock SoftLayer_SERVICE METHOD N/A N/A mock return_value N/A test result N/A _filter N/A TYPE N/A attribute N/A operation ^= prefix N/A resp N/A N/A N/A N/A self client N/A SERVICE METHOD 1234 id 5678 mask N/A object N/A attribute headers N/A header value raw_headers N/A RAW HEADER filter _filter limit 9 offset 10 N/A N/A N/A self assertEqual resp N/A test result N/A N/A N/A self assert_called_with SoftLayer_SERVICE METHOD mask N/A object N/A attribute filter _filter identifier 5678 args N/A 1234 limit 9 offset 10 N/A calls N/A N/A self calls SoftLayer_SERVICE METHOD N/A N/A N/A self assertEqual N/A len calls 1 N/A N/A N/A self assertIn header N/A N/A calls N/A 0 headers N/A N/A N/A self assertEqual N/A N/A N/A calls N/A 0 headers N/A header value N/A test_iterate N/A N/A self _iter_call N/A N/A N/A N/A N/A N/A N/A self client N/A SERVICE METHOD iter True N/A N/A N/A _iter_call assert_called_with SERVICE METHOD N/A N/A N/A mock patch SoftLayer.API.BaseClient.iter_call test_service_iter_call N/A N/A self _iter_call N/A N/A N/A N/A N/A N/A N/A self client N/A SERVICE iter_call METHOD ARG N/A N/A N/A _iter_call assert_called_with SERVICE METHOD ARG N/A N/A N/A mock patch SoftLayer.API.BaseClient.iter_call test_service_iter_call_with_chunk N/A N/A self _iter_call N/A N/A N/A N/A N/A N/A N/A self client N/A SERVICE iter_call METHOD ARG chunk 2 N/A N/A N/A _iter_call assert_called_with SERVICE METHOD ARG chunk 2 N/A N/A N/A mock patch SoftLayer.API.BaseClient.iter_call test_iter_call N/A N/A self _call N/A N/A N/A N/A _call side_effect N/A N/A list N/A range 100 N/A list N/A range 100 125 N/A result N/A list N/A N/A N/A self client iter_call SERVICE METHOD iter True N/A N/A N/A self assertEqual N/A list N/A range 125 result N/A N/A N/A _call assert_has_calls N/A N/A N/A mock call SERVICE METHOD limit 100 iter False offset 0 N/A N/A mock call SERVICE METHOD limit 100 iter False offset 100 N/A N/A N/A _call reset_mock N/A N/A _call side_effect N/A N/A list N/A range 100 N/A list N/A range 100 200 N/A N/A result N/A list N/A N/A N/A self client iter_call SERVICE METHOD iter True N/A N/A N/A self assertEqual N/A list N/A range 200 result N/A N/A N/A _call assert_has_calls N/A N/A N/A mock call SERVICE METHOD limit 100 iter False offset 0 N/A N/A mock call SERVICE METHOD limit 100 iter False offset 100 N/A N/A mock call SERVICE METHOD limit 100 iter False offset 200 N/A N/A N/A _call reset_mock N/A N/A _call side_effect N/A N/A list N/A range 0 25 N/A list N/A range 25 30 N/A result N/A list N/A N/A N/A self client iter_call SERVICE METHOD iter True limit 30 chunk 25 N/A N/A N/A self assertEqual N/A list N/A range 30 result N/A N/A N/A _call assert_has_calls N/A N/A N/A mock call SERVICE METHOD iter False limit 25 offset 0 N/A N/A mock call SERVICE METHOD iter False limit 5 offset 25 N/A N/A N/A _call reset_mock N/A N/A _call side_effect N/A test N/A result N/A list N/A N/A N/A self client iter_call SERVICE METHOD iter True N/A N/A N/A self assertEqual N/A test result N/A N/A N/A _call assert_has_calls N/A N/A N/A mock call SERVICE METHOD iter False limit 100 offset 0 N/A N/A N/A _call reset_mock N/A N/A _call side_effect N/A N/A list N/A range 0 25 N/A list N/A range 25 30 N/A result N/A list N/A N/A N/A self client iter_call SERVICE METHOD ARG iter True limit 30 chunk 25 offset 12 N/A N/A N/A self assertEqual N/A list N/A range 30 result N/A N/A N/A _call assert_has_calls N/A N/A N/A mock call SERVICE METHOD ARG iter False limit 25 offset 12 N/A N/A mock call SERVICE METHOD ARG iter False limit 5 offset 37 N/A N/A N/A self assertRaises AttributeError N/A N/A N/A N/A N/A list N/A N/A N/A self client iter_call SERVICE METHOD iter True chunk 0 N/A N/A N/A mock patch SoftLayer.API.BaseClient.call test_call_invalid_arguments N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A self client call SERVICE METHOD invalid_kwarg invalid N/A test_call_compression_disabled N/A N/A self N/A N/A N/A mocked N/A N/A self set_mock SoftLayer_SERVICE METHOD N/A N/A mocked return_value N/A N/A N/A N/A N/A N/A self client N/A SERVICE METHOD compress False N/A calls N/A N/A self calls SoftLayer_SERVICE METHOD N/A N/A N/A self assertEqual N/A len calls 1 N/A headers N/A N/A calls N/A 0 transport_headers N/A N/A N/A self assertEqual N/A N/A headers get accept-encoding identity N/A test_call_compression_enabled N/A N/A self N/A N/A N/A mocked N/A N/A self set_mock SoftLayer_SERVICE METHOD N/A N/A mocked return_value N/A N/A N/A N/A N/A N/A self client N/A SERVICE METHOD compress True N/A calls N/A N/A self calls SoftLayer_SERVICE METHOD N/A N/A N/A self assertEqual N/A len calls 1 N/A headers N/A N/A calls N/A 0 transport_headers N/A N/A N/A self assertEqual N/A N/A headers get accept-encoding gzip, deflate, compress N/A test_call_compression_override N/A N/A self N/A N/A N/A mocked N/A N/A self set_mock SoftLayer_SERVICE METHOD N/A N/A mocked return_value N/A N/A N/A N/A N/A N/A self client N/A SERVICE METHOD compress False raw_headers N/A Accept-Encoding gzip N/A calls N/A N/A self calls SoftLayer_SERVICE METHOD N/A N/A N/A self assertEqual N/A len calls 1 N/A headers N/A N/A calls N/A 0 transport_headers N/A N/A N/A self assertEqual N/A N/A headers get accept-encoding gzip N/A N/A UnauthenticatedAPIClient N/A N/A testing TestCase N/A set_up N/A N/A self N/A N/A N/A N/A self client N/A N/A SoftLayer Client endpoint_url ENDPOINT N/A test_init N/A N/A self get_client_settings N/A N/A N/A N/A get_client_settings return_value N/A N/A client N/A N/A SoftLayer Client N/A N/A N/A self assertIsNone N/A client auth N/A N/A N/A mock patch SoftLayer.config.get_client_settings test_init_with_proxy N/A N/A self get_client_settings N/A N/A N/A N/A get_client_settings return_value N/A proxy http://localhost:3128 N/A client N/A N/A SoftLayer Client N/A N/A N/A self assertEqual N/A N/A client transport proxy http://localhost:3128 N/A N/A N/A mock patch SoftLayer.config.get_client_settings test_authenticate_with_password N/A N/A self _call N/A N/A N/A N/A _call return_value N/A userId hash 12345 TOKEN N/A N/A N/A N/A self client authenticate_with_password USERNAME PASSWORD N/A N/A N/A _call assert_called_with User_Customer getPortalLoginToken USERNAME PASSWORD None None N/A N/A N/A self assertIsNotNone N/A N/A self client auth N/A N/A N/A self assertEqual N/A N/A N/A self client auth user_id 12345 N/A N/A N/A self assertEqual N/A N/A N/A self client auth auth_token TOKEN N/A N/A N/A mock patch SoftLayer.API.BaseClient.call N/A