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"])
def test_claims_ser_urlencoded(): claims = claims_deser(claims_ser(CLAIMS, "urlencoded"), format="urlencoded") assert _eq(claims.keys(), ['name', 'nickname', 'email', 'email_verified', 'picture'])
def test_claims_ser_json(): claims = claims_deser(claims_ser(CLAIMS, "json"), format="json") assert _eq(claims.keys(), ['name', 'nickname', 'email', 'email_verified', 'picture'])
def test_claims_ser_json(): claims = claims_deser(claims_ser(CLAIMS, "json"), sformat="json") assert _eq(claims.keys(), ['name', 'nickname', 'email', 'email_verified', 'picture'])