#NEWLINE# def testGetPreferredNetworksOneUserNetworksWithoutSecurity( self ) : #NEWLINE# #INDENT# 'Test GetPreferredNetworks with one user network without security.' #NEWLINE# user_network = 'Network1' #NEWLINE# expected_result = ( wifi_network_order . _SSIDS + [ self ] ) #NEWLINE# self . mox . StubOutWithMock ( wifi_network_order . gmacpyutil , 'MachineInfoForKey' ) #NEWLINE# wifi_network_order . gmacpyutil . MachineInfoForKey ( 'PreferredNetworks' ) . AndReturn ( user_network ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( expected_result , wifi_network_order . GetPreferredNetworks ( ) ) #NEWLINE# self . mox . VerifyAll ( )