def assert_type(self):
    if (self.type is not None):
        for value in self.type:
            if ((value is not None) and (value.lower() not in ['reference', 'inclusion'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'reference, inclusion'))
def assert_type(self):
    if (self.type is not None):
        for value in self.type:
            if ((value is not None) and (value.lower() not in ['reference', 'inclusion'])):
                raise ValueError('"{}" does not match possible values: {}'.format(value, 'reference, inclusion'))