[Libvirt-cim] [PATCH] [TEST] Updating VSMC 01_enum.py to verify the SynchronousMethodsSupported values
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Wed Sep 3 00:55:40 UTC 2008
>
> + try:
> + if len(vsmc) != 1:
> + logger.error("'%s' returned '%d' instance, excepted only 1", cn, len(vsmc))
This line wraps.
> + return FAIL
> +
> + if vsmc[0].InstanceID != "ManagementCapabilities":
> + print_field_error('InstanceID', vsmc[0].InstanceID, 'ManagementCapabilities')
This line wraps as well.
> + return FAIL
>
> + vsmc_sync_val = Set(vsmc[0].SynchronousMethodsSupported)
> + if len(vsmc_sync_val - sync_method_val) != 0:
> + print_field_error('SynchronousMethodsSupported', vsmc_sync_val,
> + sync_method_val)
> + return FAIL
In addition to also checking the len, you'll want to check to make sure
the SynchronousMethodsSupported values match the values we're expecting.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list