def METHOD_NAME(doc, check_attrs):
    """
    Check that entity document was updated correctly at DB.
    :param doc: the doc to check
    :param check_attrs: list of attributes which existente is checked
    """
    if not ATTRS in doc:
        #print "debug1: no attrs"
        return False
    for attr in check_attrs:
        if attr not in doc[ATTRS]:
            #print "debug2: %s" % attr
            return False
    return True