'Tests is_interface_valid method when interface has AP
mode support and it is required'

def test_is_interface_valid_has_ap_true(self):

    interface_name = 'wlan0'
    interface_object = 'Card    Object'
    adapter = interfaces.NetworkAdapter(interface_name, interface_object, self.mac_address)
    adapter.has_ap_mode = True
    self.network_manager._name_to_object[interface_name] = adapter
    actual = self.network_manager.is_interface_valid(interface_name, 'AP')
    message = 'Failed    to    validate    an    interface    with    AP    mode    available    and    requested'
    self.assertTrue(actual, message)
