Module Expr Str Import alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Str NameLoad NameLoad NameLoad decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for airport module. N/A mock google.apputils basetest N/A airport AirportModuleTest N/A N/A basetest TestCase N/A N/A Test Airport module functions. setUp N/A N/A self N/A N/A N/A N/A self mock_getintf_patcher N/A N/A N/A mock patch object airport GetDefaultInterface N/A N/A self mock_getintf N/A N/A N/A self mock_getintf_patcher start N/A N/A self mock_intf N/A N/A mock MagicMock N/A N/A N/A self mock_getintf return_value N/A self mock_intf N/A N/A self mock_sleep_patcher N/A N/A N/A mock patch object N/A airport time sleep N/A N/A self mock_sleep N/A N/A N/A self mock_sleep_patcher start N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self mock_getintf stop N/A N/A N/A N/A self mock_sleep stop N/A testSetInterfacePowerOff N/A N/A self N/A N/A N/A N/A N/A N/A self mock_intf setPower_error_ return_value N/A 0 None N/A N/A N/A airport SetInterfacePower False N/A N/A N/A N/A N/A self mock_intf setPower_error_ assert_called_once_with False None N/A testDisassociate N/A N/A self N/A N/A N/A N/A N/A airport Disassociate N/A N/A N/A N/A N/A self mock_intf disassociate assert_called_once_with N/A testAssociateToNetworkNoPassword N/A N/A self N/A N/A N/A mock_network N/A N/A mock MagicMock N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ return_value N/A True None N/A N/A N/A mock_network ssid return_value SSID N/A N/A N/A N/A self mock_intf ssid return_value SSID N/A N/A N/A airport AssociateToNetwork mock_network N/A N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ assert_called_once_with mock_network None False False None N/A testAssociateToNetworkPassword N/A N/A self N/A N/A N/A mock_network N/A N/A mock MagicMock N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ return_value N/A True None N/A N/A N/A mock_network ssid return_value SSID N/A N/A N/A N/A self mock_intf ssid return_value SSID N/A N/A N/A airport AssociateToNetwork mock_network hunter2 N/A N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ assert_called_once_with mock_network hunter2 False False None N/A testAssociateToSSIDNoPassword N/A N/A self mock_sfn N/A N/A N/A mock_network N/A N/A mock MagicMock N/A N/A mock_sfn return_value N/A GuestSSID mock_network N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ return_value N/A True None N/A N/A N/A mock_network ssid return_value GuestSSID N/A N/A N/A N/A self mock_intf ssid return_value GuestSSID N/A N/A N/A airport AssociateToSSID GuestSSID N/A N/A N/A mock_sfn assert_called_once_with GuestSSID interface N/A self mock_intf N/A N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ assert_called_once_with mock_network None False False None N/A N/A N/A N/A mock patch object airport ScanForNetworks testAssociateToSSIDPassword N/A N/A self mock_sfn N/A N/A N/A mock_network N/A N/A mock MagicMock N/A N/A mock_sfn return_value N/A GuestSSID mock_network N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ return_value N/A True None N/A N/A N/A mock_network ssid return_value GuestSSID N/A N/A N/A N/A self mock_intf ssid return_value GuestSSID N/A N/A N/A airport AssociateToSSID GuestSSID password hunter2 N/A N/A N/A mock_sfn assert_called_once_with GuestSSID interface N/A self mock_intf N/A N/A N/A N/A N/A self mock_intf associateToNetwork_password_forceBSSID_remember_error_ assert_called_once_with mock_network hunter2 False False None N/A N/A N/A N/A mock patch object airport ScanForNetworks testScanForNetworksNoSSID N/A N/A self N/A N/A N/A mock_network N/A N/A mock MagicMock N/A N/A N/A mock_network ssid return_value GuestSSID N/A N/A N/A mock_network rssiValue return_value -78 N/A mock_network2 N/A N/A mock MagicMock N/A N/A N/A mock_network2 ssid return_value GuestSSID N/A N/A N/A mock_network2 rssiValue return_value -62 N/A mock_network3 N/A N/A mock MagicMock N/A N/A N/A mock_network3 ssid return_value SSID N/A N/A N/A mock_network3 rssiValue return_value -25 N/A networks N/A mock_network mock_network2 mock_network3 N/A N/A N/A N/A self mock_intf scanForNetworksWithName_error_ return_value N/A networks None N/A retval N/A N/A airport ScanForNetworks None N/A N/A N/A N/A N/A self mock_intf scanForNetworksWithName_error_ assert_called_once_with None None N/A N/A N/A self assertEqual retval N/A GuestSSID SSID mock_network2 mock_network3 N/A N/A main N/A N/A unused_argv N/A N/A N/A N/A N/A basetest main N/A N/A N/A __name__ __main__ N/A N/A N/A N/A basetest main