'Test set_interface_mode method under normal conditions'

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

    interface_name = 'wlan0'
    interface_object = 'Card    Object'
    mode = 'monitor'
    adapter = interfaces.NetworkAdapter(interface_name, interface_object, self.mac_address)
    self.network_manager._name_to_object[interface_name] = adapter
    self.network_manager.set_interface_mode(interface_name, mode)
    pyric.down.assert_called_once_with(interface_object)
    pyric.modeset.assert_called_once_with(interface_object, mode)
    pyric.up.assert_called_once_with(interface_object)
