def testGetWifiInterfaceOneInterface(self):
    self.mox.StubOutWithMock(wifi_network_order.systemconfig,
                             'GetNetworkInterfaces')
    interfaces = ({'type': 'Ethernet', 'dev': 'en0'},
                  {'type': 'Bluetooth', 'dev': 'Bluetooth-Modem'},
                  {'type': 'IEEE80211', 'dev': 'en1'})
    wifi_network_order.systemconfig.GetNetworkInterfaces().AndReturn(
        interfaces)
    self.mox.ReplayAll()
    self.assertEqual('en1', wifi_network_order.GetWifiInterface())
    self.mox.VerifyAll()
Test GetWifiInterface with a single Wi-Fi interface.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/wifi_network_order_test.py/WifiNetworkOrderModuleTest.testGetWifiInterfaceOneInterface