def check_claim_attrs(claim_attrs, expected_claim):
    """
    Check if field 'attrs' in gotten claim matches with expected claim json.
    :param claim_attrs: value of field 'attrs' in gotten claim.
    :param expected_claim:
    :return: True of False.
    """
    for key in expected_claim.keys():
        if claim_attrs[key] != expected_claim[key][0]:
            return False
    return True