'Tests is_interface_valid method when interface is valid'

def test_is_interface_valid_valid_true(self):

    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
    actual = self.network_manager.is_interface_valid(interface_name)
    message = 'Failed    to    validate    a    valid    interface'
    self.assertTrue(actual, message)
