'Test interface_property_detector function when the interface
has AP mode support'

@mock.patch('wifiphisher.common.interfaces.pyw')
def test_interface_property_detector_has_ap_mode(self, pyric):

    pyric.devmodes.return_value = ['AP']
    interfaces.interface_property_detector(self.adapter)
    message = 'Failed    to    get    AP    mode    support    when    interface    has    support'
    self.assertTrue(self.adapter.has_ap_mode, message)
