Module Expr Str Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Copyright 2014 Rackspace

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@summary: Unit tests for the load balancer "session persistence" request model.

SessionPersistenceRequestTest
 N/A unittest cloudcafe.networking.lbaas.common.constants Constants cloudcafe.networking.lbaas.lbaas_api.session_persistence.response SessionPersistence BaseSessionPersistenceResponseTest N/A N/A unittest TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A N/A N/A super BaseSessionPersistenceResponseTest cls setUpClass N/A N/A cls XML_HEADER N/A Constants XML_HEADER N/A N/A cls XML_NS N/A Constants XML_API_NAMESPACE N/A N/A cls ROOT_TAG N/A SessionPersistence ROOT_TAG N/A N/A cls type_ COOKIE N/A N/A cls cookie_name session_persistence_cookie N/A N/A cls session_persistence_obj N/A SessionPersistence type_ N/A cls type_ cookie_name N/A cls cookie_name N/A classmethod N/A SessionPersistenceResponseTest N/A BaseSessionPersistenceResponseTest N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super SessionPersistenceResponseTest self setUp N/A N/A self ROOT_TAG N/A SessionPersistence ROOT_TAG N/A N/A self expected_obj N/A self session_persistence_obj N/A test_session_persistence_json N/A N/A self N/A N/A N/A actual_json N/A N/A 
                        {{ "{root_tag}":
                            {{
                                "type": "{type_}",
                                "cookie_name": "{cookie_name}"
                            }}
                        }}
                         format root_tag N/A self ROOT_TAG type_ N/A self type_ cookie_name N/A self cookie_name N/A actual_obj N/A N/A SessionPersistence deserialize actual_json json N/A N/A N/A self assertEqual N/A self expected_obj actual_obj N/A test_session_persistence_xml N/A N/A self N/A N/A N/A actual_xml N/A N/A {xml_header}
                            <{root_tag}
                                type="{type_}"
                                cookie_name="{cookie_name}"
                            xmlns="{xmlns}" /> format xml_header N/A self XML_HEADER xmlns N/A self XML_NS root_tag N/A self ROOT_TAG type_ N/A self type_ cookie_name N/A self cookie_name N/A actual_obj N/A N/A SessionPersistence deserialize actual_xml xml N/A N/A N/A self assertEqual N/A self expected_obj actual_obj N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main