Module Expr Str Import alias Import alias Import alias Assign SubscriptStore AttributeLoad NameLoad attr Slice Num Num ListLoad Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad Num attr Return AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body For NameStore SubscriptLoad NameLoad Index Str body Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list Return NameLoad decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num For NameStore NameLoad body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Test the topology module. N/A os N/A sys N/A threading N/A N/A N/A sys path N/A 0 0 N/A bson json_util pymongo common pymongo.topology Topology pymongo.topology_description TOPOLOGY_TYPE pymongo.ismaster IsMaster pymongo.server_description ServerDescription SERVER_TYPE pymongo.settings TopologySettings pymongo.uri_parser parse_uri test unittest N/A _TEST_PATH N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ discovery_and_monitoring MockSocketInfo N/A object N/A close N/A N/A self N/A N/A N/A N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_val exc_tb N/A N/A N/A N/A N/A MockPool N/A object N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A self pool_id 0 N/A N/A self _lock N/A N/A threading Lock N/A reset N/A N/A self N/A N/A N/A N/A self _lock N/A N/A N/A self pool_id 1 N/A N/A MockMonitor N/A object N/A __init__ N/A N/A self server_description topology pool topology_settings N/A N/A N/A N/A self _server_description server_description N/A N/A self _topology topology N/A open N/A N/A self N/A N/A N/A N/A request_check N/A N/A self N/A N/A N/A N/A close N/A N/A self N/A N/A N/A N/A N/A create_mock_topology N/A N/A uri monitor_class N/A MockMonitor N/A N/A parsed_uri N/A parse_uri N/A N/A uri replace connect=direct N/A replica_set_name None N/A N/A replicaset N/A parsed_uri N/A options N/A N/A replica_set_name N/A N/A parsed_uri N/A options N/A replicaset N/A topology_settings N/A TopologySettings N/A parsed_uri N/A nodelist replica_set_name replica_set_name pool_class MockPool monitor_class monitor_class N/A c N/A Topology topology_settings N/A N/A N/A c open N/A c N/A got_ismaster N/A N/A topology server_address ismaster_response N/A N/A N/A server_description N/A ServerDescription server_address N/A IsMaster ismaster_response 0 N/A N/A N/A topology on_change server_description N/A get_type N/A N/A topology hostname N/A N/A N/A description N/A N/A N/A topology get_server_by_address N/A hostname 27017 description N/A N/A description server_type N/A TestAllScenarios N/A N/A unittest TestCase N/A N/A N/A topology_type_name N/A N/A topology_type N/A N/A N/A N/A N/A TOPOLOGY_TYPE _fields N/A topology_type N/A server_type_name N/A N/A server_type N/A N/A N/A N/A N/A SERVER_TYPE _fields N/A server_type N/A check_outcome N/A N/A self topology outcome N/A N/A N/A expected_servers N/A outcome N/A servers N/A N/A N/A self assertEqual N/A len N/A N/A N/A topology description server_descriptions N/A len expected_servers N/A N/A expected_server_address expected_server N/A N/A expected_servers items N/A N/A node N/A N/A common partition_node expected_server_address N/A N/A N/A self assertTrue N/A N/A topology has_server node N/A actual_server N/A N/A topology get_server_by_address node N/A actual_server_description N/A actual_server description N/A N/A N/A expected_server N/A type PossiblePrimary N/A N/A expected_server_type N/A SERVER_TYPE Unknown N/A N/A expected_server_type N/A getattr SERVER_TYPE N/A expected_server N/A type N/A N/A N/A self assertEqual N/A server_type_name expected_server_type N/A server_type_name N/A actual_server_description server_type N/A N/A N/A self assertEqual N/A expected_server N/A setName N/A actual_server_description replica_set_name N/A N/A N/A self assertEqual N/A N/A expected_server get setVersion N/A actual_server_description set_version N/A N/A N/A self assertEqual N/A N/A expected_server get electionId N/A actual_server_description election_id N/A N/A N/A self assertEqual N/A outcome N/A setName N/A N/A topology description replica_set_name N/A expected_topology_type N/A getattr TOPOLOGY_TYPE N/A outcome N/A topologyType N/A N/A N/A self assertEqual N/A topology_type_name expected_topology_type N/A topology_type_name N/A N/A topology description topology_type N/A create_test N/A N/A scenario_def N/A N/A run_scenario N/A N/A self N/A N/A N/A c N/A create_mock_topology N/A scenario_def N/A uri N/A phase N/A scenario_def N/A phases N/A N/A response N/A phase N/A responses N/A N/A N/A got_ismaster c N/A N/A common partition_node N/A response N/A 0 N/A response N/A 1 N/A N/A check_outcome self c N/A phase N/A outcome N/A N/A run_scenario N/A create_tests N/A N/A N/A N/A N/A N/A dirpath _ filenames N/A N/A os walk _TEST_PATH N/A N/A dirname N/A N/A N/A N/A os path split dirpath N/A -1 N/A filename filenames N/A N/A N/A open N/A N/A N/A os path join dirpath filename scenario_stream N/A N/A scenario_def N/A N/A json_util loads N/A N/A scenario_stream read N/A new_test N/A create_test scenario_def N/A test_name N/A test_%s_%s N/A dirname N/A N/A N/A N/A os path splitext filename N/A 0 N/A N/A new_test __name__ test_name N/A N/A setattr TestAllScenarios N/A new_test __name__ new_test N/A N/A N/A create_tests N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main