def test_extract_vmware_parameters_treats_optional_params_as_none(self): (system_id, host, username, password, vm_name, uuid, port, protocol, context) = self.make_parameters(has_optional=False) self.assertItemsEqual( (host, username, password, vm_name, uuid, port, protocol), extract_vmware_parameters(context))
def test_extract_vmware_parameters_extracts_parameters(self): (system_id, host, username, password, vm_name, uuid, port, protocol, context) = self.make_parameters() self.assertItemsEqual( (host, username, password, vm_name, uuid, None, None), extract_vmware_parameters(context))