def test_claims_ser_json(): claims = Claims(name={"essential": True}, nickname=None, email={"essential": True}, email_verified={"essential": True}, picture=None) claims = claims_deser(claims_ser(claims, "json"), sformat="json") assert _eq(claims.keys(), ['name', 'nickname', 'email', 'email_verified', 'picture'])
def test_claims_ser_json(): claims = Claims( name={"essential": True}, nickname=None, email={"essential": True}, email_verified={"essential": True}, picture=None, ) claims = claims_deser(claims_ser(claims, "json"), sformat="json") assert _eq(claims.keys(), ["name", "nickname", "email", "email_verified", "picture"])