MCPcopy
hub / github.com/jpadilla/pyjwt / test_decode_works_with_unicode_token

Method test_decode_works_with_unicode_token

tests/test_api_jws.py:121–129  ·  view source on GitHub ↗
(self, jws: PyJWS)

Source from the content-addressed store, hash-verified

119 jws.decode(jws_token, secret, algorithms=["HS384"])
120
121 def test_decode_works_with_unicode_token(self, jws: PyJWS) -> None:
122 secret = "secret"
123 unicode_jws = (
124 "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9"
125 ".eyJoZWxsbyI6ICJ3b3JsZCJ9"
126 ".tvagLDLoaiJKxOKqpBXSEGy7SYSifZhjntgm9ctpyj8"
127 )
128
129 jws.decode(unicode_jws, secret, algorithms=["HS256"])
130
131 def test_decode_missing_segments_throws_exception(self, jws: PyJWS) -> None:
132 secret = "secret"

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected