Module Expr Str Import alias Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad For NameStore ListLoad Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Slice Num Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad Return ListComp NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Return Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str body Expr Str Assign NameStore BoolOpOr NameLoad ListLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword BoolOpOr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad Return NameLoad decorator_list
N/A N/A 
    SoftLayer.testing
    ~~~~~~~~~~~~~~~~~

    :license: MIT, see LICENSE for more details.
 N/A logging N/A os.path click testing N/A mock N/A testtools N/A SoftLayer SoftLayer.CLI core SoftLayer.CLI environment SoftLayer.testing xmlrpc N/A FIXTURE_PATH N/A N/A N/A os path abspath N/A N/A N/A os path join __file__ .. .. fixtures MockableTransport N/A object N/A N/A Transport which is able to mock out specific API calls. __init__ N/A N/A self transport N/A N/A N/A N/A self calls N/A N/A N/A self mocked N/A N/A N/A self transport transport N/A __call__ N/A N/A self call N/A N/A N/A N/A N/A self _record_call call N/A key N/A _mock_key N/A call service N/A call method N/A N/A key N/A self mocked N/A N/A N/A N/A N/A self mocked N/A key call N/A N/A N/A self transport call N/A set_mock N/A N/A self service method N/A N/A N/A Create a mock and return the mock object for the specific API call.

        :param service: API service to mock
        :param method: API method to mock
         N/A _mock N/A N/A mock MagicMock N/A N/A N/A self mocked N/A N/A _mock_key service method _mock N/A _mock N/A clear N/A N/A self N/A N/A N/A Clear out mocks and call history. N/A N/A self calls N/A N/A N/A self mocked N/A N/A _record_call N/A N/A self call N/A N/A N/A Record and log the API call (for later assertions). N/A N/A N/A N/A self calls append call N/A details N/A N/A prop N/A identifier args mask filter limit offset N/A N/A N/A N/A details append N/A %s=%r N/A prop N/A getattr call prop N/A N/A N/A logging info %s::%s called; %s N/A call service N/A call method N/A N/A ;  join details N/A N/A _mock_key N/A N/A service method N/A N/A N/A Key to address a mock object in MockableTransport. N/A N/A %s::%s N/A service method N/A TestCase N/A N/A testtools TestCase N/A N/A Testcase class with PEP-8 compatable method names. setUpClass N/A N/A cls N/A N/A N/A Stand up fixtured/mockable XML-RPC server. N/A N/A cls mocks N/A MockableTransport N/A N/A SoftLayer FixtureTransport N/A N/A cls server N/A N/A xmlrpc create_test_server N/A cls mocks N/A N/A host port N/A N/A N/A N/A N/A cls server socket getsockname N/A 2 N/A N/A cls endpoint_url N/A http://%s:%s N/A host port N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A Clean up the http server. N/A N/A N/A N/A cls server shutdown N/A classmethod set_up N/A N/A self N/A N/A N/A Aliased from setUp. N/A N/A tear_down N/A N/A self N/A N/A N/A Aliased from tearDown. N/A N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A testtools TestCase setUp self N/A N/A N/A N/A self mocks clear N/A transport N/A N/A SoftLayer XmlRpcTransport endpoint_url N/A self endpoint_url N/A wrapped_transport N/A N/A SoftLayer TimingTransport transport N/A N/A self client N/A N/A SoftLayer BaseClient transport wrapped_transport N/A N/A self env N/A N/A environment Environment N/A N/A N/A self env client N/A self client N/A N/A N/A self set_up N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A testtools TestCase tearDown self N/A N/A N/A self tear_down N/A N/A N/A N/A self mocks clear N/A calls N/A N/A self service method N/A None None N/A N/A Return all API calls made during the current test. N/A conditions N/A N/A N/A service None N/A N/A N/A N/A conditions append N/A N/A N/A call N/A N/A N/A call service service N/A N/A method None N/A N/A N/A N/A conditions append N/A N/A N/A call N/A N/A N/A call method method N/A N/A call N/A call N/A N/A self mocks calls N/A all N/A N/A cond call N/A cond conditions N/A assert_called_with N/A N/A self service method N/A props N/A N/A Used to assert that API calls were called with given properties.

        Props are properties of the given transport.Request object.
         N/A call N/A N/A self calls service method N/A N/A N/A call_has_props call props N/A N/A N/A N/A AssertionError N/A %s::%s was not called with given properties: %s N/A service method props N/A set_mock N/A N/A self service method N/A N/A N/A Set and return mock on the current client. N/A N/A N/A N/A self mocks set_mock service method N/A run_command N/A N/A self args env fixtures fmt N/A None None True json N/A N/A A helper that runs a SoftLayer CLI command.

        This returns a click.testing.Result object.
         N/A args N/A args N/A N/A N/A fixtures True N/A N/A N/A N/A args insert 0 --demo N/A N/A N/A args insert 0 N/A --format=%s fmt N/A runner N/A N/A testing CliRunner N/A N/A N/A runner invoke N/A core cli args args obj N/A env N/A self env N/A N/A call_has_props N/A N/A call props N/A N/A N/A Check if a call has matching properties of a given props dictionary. N/A N/A prop expected_value N/A N/A props items N/A N/A actual_value N/A getattr call prop N/A N/A actual_value expected_value N/A N/A N/A N/A logging info %s::%s property mismatch, %s: expected=%r; actual=%r N/A call service N/A call method prop expected_value actual_value N/A False N/A True N/A