'Tests set_interface_channel method when setting a channel'

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

    interface_name = 'wlan0'
    interface_object = 'Card    Object'
    channel = 4
    adapter = interfaces.NetworkAdapter(interface_name, interface_object, self.mac_address)
    self.network_manager._name_to_object[interface_name] = adapter
    self.network_manager.set_interface_channel(interface_name, channel)
    pyric.chset.assert_called_once_with(interface_object, channel)
