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

def test_is_interface_valid_no_monitor_error(self):

    interface_name = 'wlan0'
    interface_object = 'Card    Object'
    adapter = interfaces.NetworkAdapter(interface_name, interface_object, self.mac_address)
    adapter.has_monitor_mode = False
    self.network_manager._name_to_object[interface_name] = adapter
    with self.assertRaises(interfaces.InvalidInterfaceError):
        self.network_manager.is_interface_valid(interface_name, 'monitor')
