'Tests get_interface_automatically method when two interfaces
are available but only support AP mode'

def test_get_interface_automatically_2_ap_error(self):

    interface_name_0 = 'wlan0'
    interface_name_1 = 'wlan1'
    interface_object = 'Card    Object'
    adapter_0 = interfaces.NetworkAdapter(interface_name_0, interface_object, self.mac_address)
    adapter_1 = interfaces.NetworkAdapter(interface_name_1, interface_object, self.mac_address)
    adapter_0.has_ap_mode = True
    adapter_1.has_ap_mode = True
    self.network_manager._name_to_object[interface_name_0] = adapter_0
    self.network_manager._name_to_object[interface_name_1] = adapter_1
    with self.assertRaises(interfaces.InterfaceCantBeFoundError):
        self.network_manager.get_interface_automatically()
