Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign AttributeStore NameLoad attr ListLoad NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str decorator_list
N/A mock patch cloudferry.lib.utils node_ip tests test NodeIPTestCase N/A N/A test TestCase N/A test_falls_back_to_node_ip N/A N/A self get_ips_mock socket_mock N/A N/A N/A ext_cidr N/A 10.0.0.0/24 N/A init_host controller N/A compute_host compute N/A user user N/A expected 192.168.1.3 N/A N/A get_ips_mock return_value N/A N/A N/A N/A socket_mock gethostbyname return_value expected N/A ip N/A N/A node_ip get_ext_ip ext_cidr init_host compute_host user N/A N/A N/A self assertEqual expected ip N/A N/A patch cloudferry.lib.utils.node_ip.socket N/A N/A patch object node_ip get_ips test_returns_correct_ip_if_available N/A N/A self get_ips_mock N/A N/A N/A ext_cidr N/A 10.0.0.0/24 N/A init_host controller N/A compute_host compute N/A user user N/A expected 10.0.0.100 N/A N/A get_ips_mock return_value N/A expected 1.2.3.4 5.6.7.8 N/A ip N/A N/A node_ip get_ext_ip ext_cidr init_host compute_host user N/A N/A N/A self assertEqual expected ip N/A N/A N/A patch object node_ip get_ips N/A