'Test set_interface_mac_random under normal conditions'

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

    new_mac_address = '00:11:22:33:44:55'
    interface_name = 'wlan0'
    interface_object = 'Card    Object'
    adapter = interfaces.NetworkAdapter(interface_name, interface_object, self.mac_address)
    self.network_manager._name_to_object[interface_name] = adapter
    self.network_manager._active.add(interface_name)
    with mock.patch('wifiphisher.common.interfaces.generate_random_address') as generator:
        generator.return_value = new_mac_address
        self.network_manager.set_interface_mac_random(interface_name)
        pyw.macset.assert_called_once_with(interface_object, new_mac_address)
