def check_required(class_name, properties, conditionals):
    for c in conditionals:
        if (c not in properties):
            raise ValueError(('Resource %s required in %s' % c), class_name)
def check_required(class_name, properties, conditionals):
    for c in conditionals:
        if (c not in properties):
            raise ValueError(('Resource %s required in %s' % c), class_name)