Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias ImportFrom alias FunctionDef arguments args defaults body Return Dict Str Str Str Str Dict Str Str Dict Str Str Dict Str Str ListLoad Dict Str Dict Str Str Dict Str Dict Str Str decorator_list FunctionDef arguments args defaults body Return Dict Str Str Str Str Str TupleLoad TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str Str Str Str Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Dict Str ListLoad Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str Str NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str ListLoad Dict Str Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Dict Str ListLoad Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str Str Str NameLoad NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str NameLoad NameLoad ListLoad Assign NameStore Call NameLoad Dict Str Str Str NameLoad Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str ListLoad Dict Str Str Assign NameStore Call NameLoad Dict Str Str Str NameLoad Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str NameLoad Str ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Dict Str ListLoad Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Dict Str ListLoad Str keyword ListLoad Str keyword ListLoad Str body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Str Str Str Str Str Str Str Str Str Str Str Str body Assign NameStore Call NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str Str Str Dict Str ListLoad Str Dict Str ListLoad Str Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str Str Str Str Str Str Str NameLoad Dict Str Str Str Str Str Str Dict ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str ListLoad ListLoad Dict Str Str Str Str Str Str Str Str Str Str Dict Str NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str Str Str Str NameLoad Str Str Dict Str Str Str Str Dict ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str ListLoad Dict Str Str Str Str Str Str Str Str Dict Str Str ListLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str Dict Str ListLoad Str Dict Str ListLoad Str Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str ListLoad Str Str Assign NameStore Call NameLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str ListLoad Str Str Assign NameStore Call NameLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str ListLoad Str Str Assign NameStore Call NameLoad Dict Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str Dict Str ListLoad Str Dict Str ListLoad Str Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str Str Str Str NameLoad NameLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str ListLoad ListLoad ListLoad NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str NameLoad NameLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str ListLoad Str Str ListLoad ListLoad Str Str NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str ListLoad Str NameLoad ListLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str ListLoad Str Str Str ListLoad ListLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Str Str Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Str keyword Dict Str Str Dict Str ListLoad Str Dict Str ListLoad Str Str keyword ListLoad Str keyword ListLoad Str body Assign NameStore Call NameLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Assign NameStore Call NameLoad Dict Str Str Str Str Str NameLoad Assign NameStore Call NameLoad Dict Str Str Str Str NameLoad Str Assign NameStore Call NameLoad Dict Str Str Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A __future__ absolute_import __future__ division __future__ print_function N/A unittest N/A base N/A mock mc_states.api six _local_nets N/A N/A N/A N/A N/A N/A main_ip interfaces ointerfaces 192.168.0.6 N/A eth0 eth0_0 N/A address 192.168.0.6 N/A address 192.168.0.8 N/A N/A eth0 N/A address 192.168.0.6 N/A eth0_0 N/A address 192.168.0.8 N/A _local_net N/A N/A N/A N/A N/A N/A default_if default_route gifaces br0 192.168.0.1 N/A N/A em0 N/A 192.168.0.4 N/A em1 N/A 192.168.0.4 N/A em2 N/A 192.168.0.4 N/A em3 N/A 192.168.0.4 N/A eth0_666 N/A 192.168.0.7 127.0.0.1 10.1.1.1 192.168.1.1 172.16.1.1 N/A eth0_0 N/A 192.168.0.5 N/A eth0 N/A 192.168.0.4 N/A eth1 N/A 192.168.0.4 N/A br0 N/A 192.168.0.4 N/A br0,0 N/A 192.168.0.4 N/A docker0 N/A 192.168.0.4 N/A docker1 N/A 192.168.0.4 N/A lxcbr0 N/A 192.168.0.4 N/A lxcbr1 N/A 192.168.0.4 N/A xenbr0 N/A 192.168.0.4 N/A xenbr1 N/A 192.168.0.4 N/A virt0 N/A 192.168.0.4 N/A virt1 N/A 192.168.0.4 N/A vibr0 N/A 192.168.0.4 N/A vibr1 N/A 192.168.0.4 N/A lo N/A 192.168.0.4 N/A tun1 N/A 192.168.0.4 N/A tap1 N/A 192.168.0.4 N/A TestCase N/A N/A base ModuleCase N/A test_catchall N/A N/A self N/A N/A N/A func N/A N/A self _ mc_postfix.select_catchall N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost True N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A ip4_interfaces N/A eth0 N/A 192.168.168.8 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A catchall virtual_map None N/A N/A N/A N/A self assertEqual ret N/A catchall virtual_map vagrant@localhost N/A N/A /.*/ vagrant@localhost N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost False N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A ip4_interfaces N/A eth0 N/A 192.168.168.8 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A catchall mode virtual_map None None N/A N/A N/A N/A self assertEqual ret N/A catchall mode virtual_map None None N/A N/A ret N/A func N/A catchall mode virtual_map None localdeliveryonly N/A N/A N/A N/A self assertEqual ret N/A catchall mode virtual_map root@localhost localdeliveryonly N/A N/A /.*/ root@localhost N/A ret N/A func N/A catchall mode virtual_map False localdeliveryonly N/A N/A N/A N/A self assertEqual ret N/A catchall mode virtual_map False localdeliveryonly N/A N/A test_select_mode N/A N/A self N/A N/A N/A func N/A N/A self _ mc_postfix.select_mode N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost True N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A ip4_interfaces N/A eth0 N/A 192.168.168.8 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A mode None N/A N/A N/A self assertEqual ret N/A mode localdeliveryonly N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost False N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A ip4_interfaces N/A eth0 N/A 192.168.168.8 filtered N/A mc.* kinds N/A modules N/A N/A N/A mode wret N/A N/A six iteritems N/A foo None localdeliveryonly relay custom catchall redirect localdeliveryonly localdeliveryonly localdeliveryonly relay custom catchall catchall N/A N/A ret N/A func N/A mode mode N/A N/A N/A self assertEqual ret N/A mode wret N/A N/A modetest: {0} {1} != {2} format mode N/A ret N/A mode wret N/A test_select_dests_and_relays N/A N/A self N/A N/A N/A func N/A N/A self _ mc_postfix.select_dests_and_relays N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost True N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A fqdn ip4_interfaces ip_interfaces foo.bar N/A eth0 N/A 192.168.168.8 N/A eth0 N/A 192.168.168.8 fe80::1 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A no_local mydestination mailname mode relay_domains inet_protocols local_networks True N/A foo.bar g bar g foo localdeliveryonly N/A N/A N/A N/A N/A N/A self assertEqual ret N/A mode inet_protocols local_networks mydestination relay_domains mailname no_local localdeliveryonly N/A N/A N/A foo.bar foo g localhost localhost.local bar OK g OK OK N/A foo True N/A ret N/A func N/A no_local mailname mode mydestination relay_domains inet_protocols local_networks True foo relay N/A foo g bar g N/A N/A N/A N/A N/A N/A self assertEqual ret N/A mode inet_protocols relay_domains mydestination local_networks mailname no_local relay N/A N/A foo foo.bar localhost localhost.local OK OK OK OK N/A g g N/A foo True N/A test_select_interfaces N/A N/A self N/A N/A N/A func N/A N/A self _ mc_postfix.select_interfaces N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost True N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A ip4_interfaces ip_interfaces N/A eth0 N/A 192.168.168.8 N/A eth0 N/A 192.168.168.8 fe80::1 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A inet_interfaces mode N/A custom N/A N/A N/A self assertEqual ret N/A inet_interfaces mode N/A all custom N/A ret N/A func N/A inet_interfaces mode foo custom N/A N/A N/A self assertEqual ret N/A inet_interfaces mode N/A foo custom N/A ret N/A func N/A inet_interfaces mode foo relay N/A N/A N/A self assertEqual ret N/A inet_interfaces mode N/A foo relay N/A ret N/A func N/A inet_interfaces mode N/A relay N/A N/A N/A self assertEqual ret N/A inet_interfaces mode N/A 127.0.0.1 relay N/A test_select_networks N/A N/A self N/A N/A N/A func N/A N/A self _ mc_postfix.select_networks N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost True N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets grains N/A ip4_interfaces ip_interfaces N/A eth0 N/A 192.168.168.8 N/A eth0 N/A 192.168.168.8 fe80::1 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A mynetworks no_local inet_protocols local_networks None True N/A N/A N/A N/A N/A self assertEqual ret N/A mynetworks inet_protocols local_networks no_local N/A N/A N/A True N/A ret N/A func N/A mynetworks no_local inet_protocols local_networks None False N/A N/A N/A N/A N/A self assertEqual ret N/A mynetworks inet_protocols local_networks no_local N/A 192.168.168.8/32 [fe80::1]/128 N/A N/A 192.168.168.8/32 fe80::1 False N/A ret N/A func N/A mynetworks no_local inet_protocols local_networks N/A fe80::2/127 False N/A N/A 192.168.168.8/32 fe80::1 N/A N/A N/A self assertEqual ret N/A mynetworks inet_protocols local_networks no_local N/A [fe80::2]/127 192.168.168.8/32 [fe80::1]/128 N/A N/A 192.168.168.8/32 fe80::1 False N/A test_select_certs N/A N/A self N/A N/A N/A func N/A N/A self _ mc_postfix.select_certs N/A N/A N/A self patch funcs N/A modules N/A mc_nodetypes.registry mc_ssl.search_matching_certificate mc_network.default_net mc_network.settings N/A N/A mock MagicMock return_value N/A is N/A devhost True N/A N/A mock MagicMock return_value N/A BEGIN CERTIFICATE END PRIVATE KEY N/A N/A mock MagicMock side_effect _local_net N/A N/A mock MagicMock side_effect _local_nets opts N/A cachedir grains N/A ip4_interfaces ip_interfaces N/A eth0 N/A 192.168.168.8 N/A eth0 N/A 192.168.168.8 fe80::1 filtered N/A mc.* kinds N/A modules N/A N/A ret N/A func N/A cert cert_key a b N/A N/A N/A self assertEqual ret N/A cert cert_key a b N/A ret1 N/A func N/A domain cert cert_key foo a None N/A ret2 N/A func N/A domain cert cert_key foo None b N/A ret3 N/A func N/A domain cert cert_key foo None None N/A N/A N/A self assertEqual ret1 ret2 N/A N/A N/A self assertEqual ret1 ret3 N/A N/A N/A self assertTrue N/A PRIVATE KEY N/A ret3 N/A cert_key N/A N/A N/A self assertTrue N/A CERTIFICATE N/A ret3 N/A cert N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main